Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescript support #216

Open
MineYuanlu opened this issue May 23, 2022 · 5 comments
Open

typescript support #216

MineYuanlu opened this issue May 23, 2022 · 5 comments

Comments

@MineYuanlu
Copy link

Can you provide an crypto-browserify.d.ts? I am using typescript. Without this file, my editor will report an error. At present, I am using a magic revision of crypto.d.ts, and only change its module name to crypto-browserify

@ljharb
Copy link
Member

ljharb commented May 23, 2022

Types should come from a DT package, and someone would have to make one.

@dluvnn
Copy link

dluvnn commented Aug 14, 2022

I solved the problem by adding the reference before import crypto

/// <reference types="node" />
import * as crypto from 'crypto';

@Bruce-zxy
Copy link

Who can solve the problem?

@ljharb
Copy link
Member

ljharb commented Feb 23, 2023

@Bruce-zxy literally anyone who makes a PR to DefinitelyTyped.

@jglee96
Copy link

jglee96 commented Apr 10, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants