mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add types for new package @microsoft/typescript-etw (#37138)
* Add types for '@microsoft/typescript-etw' * Add more authors
This commit is contained in:
parent
e244bc5f6b
commit
efa2c81aab
27
types/microsoft__typescript-etw/index.d.ts
vendored
Normal file
27
types/microsoft__typescript-etw/index.d.ts
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
// Type definitions for @microsoft/typescript-etw 0.1
|
||||
// Project: https://github.com/microsoft/typescript-etw
|
||||
// Definitions by: Michael Crane <https://github.com/mrcrane>
|
||||
// Andrew Casey <https://github.com/amcasey>
|
||||
// Mine Starks <https://github.com/minestarks>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function logEvent(msg: string): void;
|
||||
export function logErrEvent(msg: string): void;
|
||||
export function logPerfEvent(msg: string): void;
|
||||
export function logInfoEvent(msg: string): void;
|
||||
export function logStartCommand(command: string, msg: string): void;
|
||||
export function logStopCommand(command: string, msg: string): void;
|
||||
export function logStartUpdateProgram(msg: string): void;
|
||||
export function logStopUpdateProgram(msg: string): void;
|
||||
export function logStartUpdateGraph(): void;
|
||||
export function logStopUpdateGraph(): void;
|
||||
export function logStartResolveModule(name: string): void;
|
||||
export function logStopResolveModule(success: string): void;
|
||||
export function logStartParseSourceFile(filename: string): void;
|
||||
export function logStopParseSourceFile(): void;
|
||||
export function logStartReadFile(filename: string): void;
|
||||
export function logStopReadFile(): void;
|
||||
export function logStartBindFile(filename: string): void;
|
||||
export function logStopBindFile(): void;
|
||||
export function logStartScheduledOperation(operationId: string): void;
|
||||
export function logStopScheduledOperation(): void;
|
||||
@ -0,0 +1,22 @@
|
||||
import etw = require ('@microsoft/typescript-etw');
|
||||
|
||||
etw.logEvent('message');
|
||||
etw.logErrEvent('message');
|
||||
etw.logPerfEvent('message');
|
||||
etw.logInfoEvent('message');
|
||||
etw.logStartCommand('command', 'message');
|
||||
etw.logStopCommand('command', 'message');
|
||||
etw.logStartUpdateProgram('message');
|
||||
etw.logStopUpdateProgram('message');
|
||||
etw.logStartUpdateGraph();
|
||||
etw.logStopUpdateGraph();
|
||||
etw.logStartResolveModule('name');
|
||||
etw.logStopResolveModule('success');
|
||||
etw.logStartParseSourceFile('filename');
|
||||
etw.logStopParseSourceFile();
|
||||
etw.logStartReadFile('filename');
|
||||
etw.logStopReadFile();
|
||||
etw.logStartBindFile('filename');
|
||||
etw.logStopBindFile();
|
||||
etw.logStartScheduledOperation('operationId');
|
||||
etw.logStopScheduledOperation();
|
||||
26
types/microsoft__typescript-etw/tsconfig.json
Normal file
26
types/microsoft__typescript-etw/tsconfig.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"@microsoft/typescript-etw": ["microsoft__typescript-etw"]
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"microsoft__typescript-etw-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/microsoft__typescript-etw/tslint.json
Normal file
1
types/microsoft__typescript-etw/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user