mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Fix export issues in parse.d.ts
In node: Module '"parse/node"' resolves to a non-module entity and cannot be imported using this construct. In browser: Module '"parse"' resolves to a non-module entity and cannot be imported using this construct. Parse can now be imported like: import * as Parse from 'parse/node'
This commit is contained in:
4
parse/parse.d.ts
vendored
4
parse/parse.d.ts
vendored
@@ -1087,10 +1087,10 @@ declare namespace Parse {
|
||||
}
|
||||
|
||||
declare module "parse/node" {
|
||||
export = { Parse };
|
||||
export = Parse;
|
||||
}
|
||||
|
||||
declare module "parse" {
|
||||
import parse = require("parse/node");
|
||||
import * as parse from "parse/node";
|
||||
export = parse
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user