mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
exclude 'weak' from build, update weak.d.ts
This commit is contained in:
@@ -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
|
||||
|
||||
5
src/typings/weak.d.ts
vendored
5
src/typings/weak.d.ts
vendored
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user