Skip to content

Commit 4ea5508

Browse files
committed
support for node and react-native types
1 parent 75cf216 commit 4ea5508

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

types/index.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/b23a36e669fa127d1035e22ca93faab85b98e49f/types/parse/index.d.ts#L11
2+
// Possibly add @types/node module reference types
3+
4+
/// <reference path="node.d.ts" />
5+
/// <reference path="react-native.d.ts" />
6+
17
import { EventEmitter } from 'events';
28

39
declare enum ErrorCode {

types/node.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
import parse from "./Parse";
2-
export default parse;
1+
import * as parse from "./index";
2+
3+
export = parse;

types/react-native.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
import parse from "./Parse";
2-
export default parse;
1+
import * as parse from "./index";
2+
3+
export = parse;

types/tslint.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
"no-redundant-jsdoc": false,
88
"strict-export-declare-modifiers": false
99
}
10-
}
10+
}

0 commit comments

Comments
 (0)