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

This commit is contained in:
Johannes Rieken 2016-01-11 14:30:06 +01:00
parent 44b8ebe084
commit db46719428
2 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -1,4 +1,3 @@
/*---------------------------------------------------------------------------------------------
* 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;
}