mirror of
https://github.com/Microsoft/vscode
synced 2024-07-17 11:07:22 +00:00
Use @types a few more places (#20159)
This commit is contained in:
parent
22fdff9baf
commit
7f8173680f
2
extensions/html/server/src/test/ref.d.ts
vendored
2
extensions/html/server/src/test/ref.d.ts
vendored
|
@ -1 +1 @@
|
|||
/// <reference path='../../node_modules/@types/mocha/index.d.ts'/>
|
||||
/// <reference types='@types/mocha'/>
|
|
@ -4,5 +4,5 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
/// <reference path="../../../../src/vs/vscode.d.ts" />
|
||||
/// <reference path='../../node_modules/@types/mocha/index.d.ts'/>
|
||||
/// <reference types='@types/mocha'/>
|
||||
/// <reference types='@types/node'/>
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
/// <reference path='../../node_modules/@types/mocha/index.d.ts'/>
|
||||
/// <reference types='@types/mocha'/>
|
||||
/// <reference types='@types/node'/>
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
"@types/mocha": "^2.2.39",
|
||||
"@types/semver": "^5.3.30",
|
||||
"@types/sinon": "^1.16.34",
|
||||
"@types/winreg": "^1.2.30",
|
||||
"azure-storage": "^0.3.1",
|
||||
"clean-css": "3.4.6",
|
||||
"coveralls": "^2.11.11",
|
||||
|
|
96
src/typings/winreg.d.ts
vendored
96
src/typings/winreg.d.ts
vendored
|
@ -1,96 +0,0 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module winreg {
|
||||
export interface IRegValue {
|
||||
host: string;
|
||||
hive: any;
|
||||
key: string;
|
||||
name: string;
|
||||
type: string;
|
||||
value: any;
|
||||
}
|
||||
|
||||
export interface IWinRegConfig {
|
||||
hive: any;
|
||||
key: string;
|
||||
}
|
||||
|
||||
export interface IRegValuesCallback {
|
||||
(error: Error, items: IRegValue[]): void;
|
||||
}
|
||||
|
||||
export interface IWinReg {
|
||||
/**
|
||||
* list the values under this key
|
||||
*/
|
||||
values(callback: IRegValuesCallback): void;
|
||||
|
||||
/**
|
||||
* list the subkeys of this key
|
||||
*/
|
||||
keys(callback: (error: Error, keys: string[]) => void): void;
|
||||
|
||||
/**
|
||||
* gets a value by it's name
|
||||
*/
|
||||
get(name: string, callback: (error: Error, item: IRegValue) => void): void;
|
||||
|
||||
/**
|
||||
* sets a value
|
||||
*/
|
||||
set(name: string, type: string, value: string, callback: (error: string) => void): void;
|
||||
|
||||
/**
|
||||
* remove the value with the given key
|
||||
*/
|
||||
remove(name: string, callback: (error: void) => void): void;
|
||||
|
||||
/**
|
||||
* create this key
|
||||
*/
|
||||
create(callback: (error: Error) => void): void;
|
||||
|
||||
/**
|
||||
* remove this key
|
||||
*/
|
||||
erase(callback: (error: Error) => void): void;
|
||||
|
||||
/**
|
||||
* a new Winreg instance initialized with the parent ke
|
||||
*/
|
||||
parent: IWinReg;
|
||||
|
||||
host: string;
|
||||
hive: string;
|
||||
key: string;
|
||||
path: string;
|
||||
}
|
||||
|
||||
export interface IWinRegFactory {
|
||||
new (config: IWinRegConfig): IWinReg;
|
||||
|
||||
// hives
|
||||
HKLM: string;
|
||||
HKCU: string;
|
||||
HKCR: string;
|
||||
HKCC: string;
|
||||
HKU: string;
|
||||
|
||||
// types
|
||||
REG_SZ: string;
|
||||
REG_MULTI_SZ: string;
|
||||
REG_EXPAND_SZ: string;
|
||||
REG_DWORD: string;
|
||||
REG_QWORD: string;
|
||||
REG_BINARY: string;
|
||||
REG_NONE: string;
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'winreg' {
|
||||
var winreg: winreg.IWinRegFactory;
|
||||
export = winreg;
|
||||
}
|
Loading…
Reference in a new issue