Skip to content

Commit 6681a2a

Browse files
committed
tsfmt - src
1 parent c2c86be commit 6681a2a

998 files changed

Lines changed: 18641 additions & 18592 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/typings/ansi-regex.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare module 'ansi-regex' {
22
function result(): RegExp;
3-
module result {}
3+
module result { }
44
export = result;
55
}

src/typings/applicationInsights.d.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,62 +3,62 @@
33
* the auto-collection behavior of the application insights module.
44
*/
55
declare module ApplicationInsights {
6-
var client: any;
6+
var client: any;
77
/**
88
* Initializes a client with the given instrumentation key, if this is not specified, the value will be
99
* read from the environment variable APPINSIGHTS_INSTRUMENTATIONKEY
1010
* @returns {ApplicationInsights/Client} a new client
1111
*/
12-
function getClient(instrumentationKey?: string): any /*Client*/;
12+
function getClient(instrumentationKey?: string): any /*Client*/;
1313
/**
1414
* Initializes the default client of the client and sets the default configuration
1515
* @param instrumentationKey the instrumentation key to use. Optional, if this is not specified, the value will be
1616
* read from the environment variable APPINSIGHTS_INSTRUMENTATIONKEY
1717
* @returns {ApplicationInsights} this class
1818
*/
19-
function setup(instrumentationKey?: string): typeof ApplicationInsights;
19+
function setup(instrumentationKey?: string): typeof ApplicationInsights;
2020
/**
2121
* Starts automatic collection of telemetry. Prior to calling start no telemetry will be collected
2222
* @returns {ApplicationInsights} this class
2323
*/
24-
function start(): typeof ApplicationInsights;
24+
function start(): typeof ApplicationInsights;
2525
/**
2626
* Sets the state of console tracking (enabled by default)
2727
* @param value if true console activity will be sent to Application Insights
2828
* @returns {ApplicationInsights} this class
2929
*/
30-
function setAutoCollectConsole(value: boolean): typeof ApplicationInsights;
30+
function setAutoCollectConsole(value: boolean): typeof ApplicationInsights;
3131
/**
3232
* Sets the state of exception tracking (enabled by default)
3333
* @param value if true uncaught exceptions will be sent to Application Insights
3434
* @returns {ApplicationInsights} this class
3535
*/
36-
function setAutoCollectExceptions(value: boolean): typeof ApplicationInsights;
36+
function setAutoCollectExceptions(value: boolean): typeof ApplicationInsights;
3737
/**
3838
* Sets the state of performance tracking (enabled by default)
3939
* @param value if true performance counters will be collected every second and sent to Application Insights
4040
* @returns {ApplicationInsights} this class
4141
*/
42-
function setAutoCollectPerformance(value: boolean): typeof ApplicationInsights;
42+
function setAutoCollectPerformance(value: boolean): typeof ApplicationInsights;
4343
/**
4444
* Sets the state of request tracking (enabled by default)
4545
* @param value if true requests will be sent to Application Insights
4646
* @returns {ApplicationInsights} this class
4747
*/
48-
function setAutoCollectRequests(value: boolean): typeof ApplicationInsights;
48+
function setAutoCollectRequests(value: boolean): typeof ApplicationInsights;
4949

50-
/**
51-
* Sets the state of enabling offline mode to cache event when client is offline (disabled by default)
52-
* @param value if true events that happen while client is offline will be cahced on disk,
53-
* client will retry to send events when back online
54-
* @returns {ApplicationInsights} this class
55-
*/
56-
function setOfflineMode(value: boolean): typeof ApplicationInsights;
50+
/**
51+
* Sets the state of enabling offline mode to cache event when client is offline (disabled by default)
52+
* @param value if true events that happen while client is offline will be cahced on disk,
53+
* client will retry to send events when back online
54+
* @returns {ApplicationInsights} this class
55+
*/
56+
function setOfflineMode(value: boolean): typeof ApplicationInsights;
5757
/**
5858
* Enables verbose debug logging
5959
* @returns {ApplicationInsights} this class
6060
*/
61-
function enableVerboseLogging(): typeof ApplicationInsights;
61+
function enableVerboseLogging(): typeof ApplicationInsights;
6262
}
6363

6464
declare module 'applicationinsights' {

src/typings/electron.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ declare namespace Electron {
432432
dock: Dock;
433433
}
434434

435-
type AppPathName = 'home'|'appData'|'userData'|'temp'|'exe'|'module'|'desktop'|'documents'|'downloads'|'music'|'pictures'|'videos'|'pepperFlashSystemPlugin';
435+
type AppPathName = 'home' | 'appData' | 'userData' | 'temp' | 'exe' | 'module' | 'desktop' | 'documents' | 'downloads' | 'music' | 'pictures' | 'videos' | 'pepperFlashSystemPlugin';
436436

437437
interface ImportCertificateOptions {
438438
/**
@@ -1653,7 +1653,7 @@ declare namespace Electron {
16531653
/**
16541654
* The window icon, when omitted on Windows the executable’s icon would be used as window icon.
16551655
*/
1656-
icon?: NativeImage|string;
1656+
icon?: NativeImage | string;
16571657
/**
16581658
* Whether window should be shown when created.
16591659
* Default: true.
@@ -1982,7 +1982,7 @@ declare namespace Electron {
19821982
* An object you can define that will be sent along with the report.
19831983
* Only string properties are sent correctly, nested objects are not supported.
19841984
*/
1985-
extra?: {[prop: string]: string};
1985+
extra?: { [prop: string]: string };
19861986
}
19871987

19881988
interface CrashReport {
@@ -2478,7 +2478,7 @@ declare namespace Electron {
24782478
* In Electron for the APIs that take images, you can pass either file paths
24792479
* or NativeImage instances. When passing null, an empty image will be used.
24802480
*/
2481-
icon?: NativeImage|string;
2481+
icon?: NativeImage | string;
24822482
/**
24832483
* If false, the menu item will be greyed out and unclickable.
24842484
*/
@@ -2495,7 +2495,7 @@ declare namespace Electron {
24952495
* Should be specified for submenu type menu item, when it's specified the
24962496
* type: 'submenu' can be omitted for the menu item
24972497
*/
2498-
submenu?: Menu|MenuItemOptions[];
2498+
submenu?: Menu | MenuItemOptions[];
24992499
/**
25002500
* Unique within a single menu. If defined then it can be used as a reference
25012501
* to this item by the position attribute.
@@ -3620,15 +3620,15 @@ declare namespace Electron {
36203620
/**
36213621
* Creates a new tray icon associated with the image.
36223622
*/
3623-
new(image: NativeImage|string): Tray;
3623+
new (image: NativeImage | string): Tray;
36243624
/**
36253625
* Destroys the tray icon immediately.
36263626
*/
36273627
destroy(): void;
36283628
/**
36293629
* Sets the image associated with this tray icon.
36303630
*/
3631-
setImage(image: NativeImage|string): void;
3631+
setImage(image: NativeImage | string): void;
36323632
/**
36333633
* Sets the image associated with this tray icon when pressed.
36343634
*/
@@ -4440,7 +4440,7 @@ declare namespace Electron {
44404440
*/
44414441
type StopFindInPageAtion = 'clearSelection' | 'keepSelection' | 'activateSelection';
44424442

4443-
type CursorType = 'default' | 'crosshair' | 'pointer' | 'text' | 'wait' | 'help' | 'e-resize' | 'n-resize' | 'ne-resize' | 'nw-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'w-resize' | 'ns-resize' | 'ew-resize' | 'nesw-resize' | 'nwse-resize' | 'col-resize' | 'row-resize' | 'm-panning' | 'e-panning' | 'n-panning' | 'ne-panning' | 'nw-panning' | 's-panning' | 'se-panning' |'sw-panning' | 'w-panning' | 'move' | 'vertical-text' | 'cell' | 'context-menu' | 'alias' | 'progress' | 'nodrop' | 'copy' | 'none' | 'not-allowed' | 'zoom-in' | 'zoom-out' | 'grab' | 'grabbing' | 'custom';
4443+
type CursorType = 'default' | 'crosshair' | 'pointer' | 'text' | 'wait' | 'help' | 'e-resize' | 'n-resize' | 'ne-resize' | 'nw-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'w-resize' | 'ns-resize' | 'ew-resize' | 'nesw-resize' | 'nwse-resize' | 'col-resize' | 'row-resize' | 'm-panning' | 'e-panning' | 'n-panning' | 'ne-panning' | 'nw-panning' | 's-panning' | 'se-panning' | 'sw-panning' | 'w-panning' | 'move' | 'vertical-text' | 'cell' | 'context-menu' | 'alias' | 'progress' | 'nodrop' | 'copy' | 'none' | 'not-allowed' | 'zoom-in' | 'zoom-out' | 'grab' | 'grabbing' | 'custom';
44444444

44454445
interface LoadURLOptions {
44464446
/**
@@ -5256,23 +5256,23 @@ declare namespace Electron {
52565256
namespace WebViewElement {
52575257
type Event = ElectronPrivate.GlobalEvent;
52585258

5259-
interface LoadCommitEvent extends Event {
5259+
interface LoadCommitEvent extends Event {
52605260
url: string;
52615261
isMainFrame: boolean;
52625262
}
52635263

5264-
interface DidFailLoadEvent extends Event {
5264+
interface DidFailLoadEvent extends Event {
52655265
errorCode: number;
52665266
errorDescription: string;
52675267
validatedURL: string;
52685268
isMainFrame: boolean;
52695269
}
52705270

5271-
interface DidFrameFinishLoadEvent extends Event {
5271+
interface DidFrameFinishLoadEvent extends Event {
52725272
isMainFrame: boolean;
52735273
}
52745274

5275-
interface DidGetResponseDetails extends Event {
5275+
interface DidGetResponseDetails extends Event {
52765276
status: boolean;
52775277
newURL: string;
52785278
originalURL: string;

src/typings/gc-signals.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
declare module 'gc-signals' {
2-
export interface GCSignal {
3-
}
2+
export interface GCSignal {
3+
}
44
/**
55
* Create a new GC signal. When being garbage collected the passed
66
* value is stored for later consumption.
77
*/
8-
export const GCSignal: {
9-
new (id: number): GCSignal;
10-
};
8+
export const GCSignal: {
9+
new (id: number): GCSignal;
10+
};
1111
/**
1212
* Consume ids of garbage collected signals.
1313
*/
14-
export function consumeSignals(): number[];
15-
export function onDidGarbageCollectSignals(callback: (ids: number[]) => any): {
16-
dispose(): void;
17-
};
18-
export function trackGarbageCollection(obj: any, id: number): number;
14+
export function consumeSignals(): number[];
15+
export function onDidGarbageCollectSignals(callback: (ids: number[]) => any): {
16+
dispose(): void;
17+
};
18+
export function trackGarbageCollection(obj: any, id: number): number;
1919
}

src/typings/getmac.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
declare module getmac {
7-
export function getMac(callback: (error:Error, macAddress:string)=>void): void;
7+
export function getMac(callback: (error: Error, macAddress: string) => void): void;
88
}
99

1010
declare module 'getmac' {

src/typings/iconv-lite.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
/// <reference path='./node.d.ts'/>
77

88
declare module 'iconv-lite' {
9-
export function decode(buffer: NodeBuffer, encoding:string, options?:any): string;
9+
export function decode(buffer: NodeBuffer, encoding: string, options?: any): string;
1010

11-
export function encode(content:string, encoding:string, options?:any): NodeBuffer;
11+
export function encode(content: string, encoding: string, options?: any): NodeBuffer;
1212

13-
export function encodingExists(encoding:string): boolean;
13+
export function encodingExists(encoding: string): boolean;
1414

15-
export function decodeStream(encoding:string): NodeJS.ReadWriteStream;
15+
export function decodeStream(encoding: string): NodeJS.ReadWriteStream;
1616

17-
export function encodeStream(encoding:string): NodeJS.ReadWriteStream;
17+
export function encodeStream(encoding: string): NodeJS.ReadWriteStream;
1818
}

src/typings/lib.array-ext.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
interface ArrayConstructor {
7-
isArray(arg: any): arg is Array<any>;
8-
isArray<T>(arg: any): arg is Array<T>;
7+
isArray(arg: any): arg is Array<any>;
8+
isArray<T>(arg: any): arg is Array<T>;
99
}

src/typings/minimist.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ declare module 'minimist' {
99
namespace minimist {
1010
export interface Opts {
1111
// a string or array of strings argument names to always treat as strings
12-
string?: string|string[];
12+
string?: string | string[];
1313
// a string or array of strings to always treat as booleans
14-
boolean?: boolean|string|string[];
14+
boolean?: boolean | string | string[];
1515
// an object mapping string names to strings or arrays of string argument names to use
16-
alias?: {[key:string]: string|string[]};
16+
alias?: { [key: string]: string | string[] };
1717
// an object mapping string argument names to default values
18-
default?: {[key:string]: any};
18+
default?: { [key: string]: any };
1919
// when true, populate argv._ with everything after the first non-option
2020
stopEarly?: boolean;
2121
// a function which is invoked with a command line parameter not defined in the opts configuration object.

src/typings/mocha.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
declare function run(): void;
77

8-
declare function suite(name: string, fn: (err?)=>void);
9-
declare function test(name: string, fn: (done?: (err?)=>void)=>void);
10-
declare function suiteSetup(fn: (done?: (err?)=>void)=>void);
11-
declare function suiteTeardown(fn: (done?: (err?)=>void)=>void);
12-
declare function setup(fn: (done?: (err?)=>void)=>void);
13-
declare function teardown(fn: (done?: (err?)=>void)=>void);
8+
declare function suite(name: string, fn: (err?) => void);
9+
declare function test(name: string, fn: (done?: (err?) => void) => void);
10+
declare function suiteSetup(fn: (done?: (err?) => void) => void);
11+
declare function suiteTeardown(fn: (done?: (err?) => void) => void);
12+
declare function setup(fn: (done?: (err?) => void) => void);
13+
declare function teardown(fn: (done?: (err?) => void) => void);

0 commit comments

Comments
 (0)