提交 db467194 编写于 作者: J Johannes Rieken

exclude 'weak' from build, update weak.d.ts

上级 44b8ebe0
......@@ -33,7 +33,7 @@ var baseModules = [
'events', 'fs', 'getmac', 'glob', 'graceful-fs', 'http', 'http-proxy-agent',
'https', 'https-proxy-agent', 'iconv-lite', 'electron', 'net',
'os', 'path', 'readline', 'sax', 'semver', 'stream', 'string_decoder', 'url',
'vscode-textmate', 'winreg', 'yauzl', 'native-keymap'
'vscode-textmate', 'winreg', 'yauzl', 'native-keymap', 'weak'
];
// Build
......
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
......@@ -10,6 +9,8 @@ declare namespace weak {
}
}
declare const weak: WeakFunction;
interface WeakFunction {
<T>(obj: T, callback?: () => any): T & weak.WeakRef;
(obj: any, callback?: () => any): any & weak.WeakRef;
......@@ -22,8 +23,6 @@ interface WeakFunction {
isWeakRef(obj: any): boolean;
}
declare const weak: WeakFunction;
declare module 'weak' {
export = weak;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册