browserify / crypto-browserify

partial implementation of node's `crypto` for the browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typescript support

MineYuanlu opened this issue · comments

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

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

I solved the problem by adding the reference before import crypto

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

Who can solve the problem?

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