提交 7f817368 编写于 作者: M Matt Bierner 提交者: GitHub

Use @types a few more places (#20159)

上级 22fdff9b
/// <reference path='../../node_modules/@types/mocha/index.d.ts'/>
\ No newline at end of file
/// <reference types='@types/mocha'/>
\ No newline at end of file
......@@ -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'/>
/*---------------------------------------------------------------------------------------------
* 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;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册