forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalyzerEnv.ts
More file actions
58 lines (48 loc) · 2.43 KB
/
analyzerEnv.ts
File metadata and controls
58 lines (48 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/// <reference path="..\compiler\types.ts"/>
var ActiveXObject: { new(...args: any[]): any }
declare function setInterval(handler: any, timeout?: any, ...args: any[]): number;
declare module Intl {
interface CollatorOptions {
usage?: string;
localeMatcher?: string;
numeric?: boolean;
caseFirst?: string;
sensitivity?: string;
ignorePunctuation?: boolean;
}
}
interface String {
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
* @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locales: string[], options?: Intl.CollatorOptions): number;
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locale: string, options?: Intl.CollatorOptions): number;
}
module WScript {
export module Arguments {
export function Item(n: number): any {
throw new Error("NYI");
}
export var length: number = 0;
}
export module StdOut {
var fso: any = ActiveXObject && new ActiveXObject("Scripting.FileSystemObject");
var stdout = fso && fso.GetStandardStream(1);
export function Write(s: string): void {
stdout.Write(s);
}
}
export var FileName: string = "tsc.js";
export var ScriptFullName: string = "tsc.js";
export function Quit(n: number): void {
}
}