7
declare interface BooleanInterfaceDTS {
11
declare interface NumberInterfaceDTS {
15
declare interface StringInterfaceDTS {
19
declare interface UnionInterfaceDTS {
21
unionProp: number | boolean
24
declare interface UnionOptionalInterfaceDTS {
26
unionProp: string | undefined
29
declare interface TupleInterfaceDTS {
31
tuple: [number, boolean]
34
declare interface OptionInterfaceDTS {
36
tuple: [boolean?, number?]
39
declare interface ArrayRefNumberInterfaceDTS {
44
declare interface ArrayRefTuplesInterfaceDTS {
46
tuple: Array<[boolean, number]>
49
declare class ClassDTS {
55
declare class ClassWithConstructorDTS {
57
constructor(valNumber: number, valString: string)
61
declare class ClassWithConstructorAndFieldsDTS {
66
constructor(valNumber: number, valBoolean: boolean)
70
declare class ClassWithConstructorAndMethodsDTS {
72
constructor(valNumber: number, valString: string)
74
method(valNumber: number, valString: string): void
78
declare class ClassWithConstructorAndStaticMethodsDTS {
80
constructor(valNumber: number, valString: string)
82
static of(valNumber: number, valString: string): ClassWithConstructorAndStaticMethodsDTS
86
declare class ClassWithConstructorAndFieldsAndMethodsDTS {
91
constructor(valNumber: number, valBoolean: boolean)
93
method(valNumber: number, valString: string): void
98
declare class ClassWithConstructorAndWithoutParamsDTS {
102
static of(): ClassWithConstructorAndWithoutParamsDTS
108
declare class ClassWithConstructorAndNonOptionalParamsDTS {
110
constructor(valNumber: number, valString: string)
112
static of(valNumber: number, valString: string): ClassWithConstructorAndNonOptionalParamsDTS
114
method(valBoolean: boolean, valString: string): void
118
declare class ClassWithConstructorAndSomeOptionalParamsDTS {
120
constructor(valNumber: number, valString?: string)
122
static of(valNumber: number, valString?: string): ClassWithConstructorAndSomeOptionalParamsDTS
124
method(valBoolean: boolean, valString?: string): void
128
declare class ClassWithConstructorAndAllOptionalParamsDTS {
130
constructor(valNumber?: number, valString?: string)
132
static of(valNumber?: number, valString?: string): ClassWithConstructorAndAllOptionalParamsDTS
134
method(valBoolean?: boolean, valString?: string): void
137
declare interface TestInterface {
140
declare const Test: TestInterface
157
declare class TestAttribute extends CommonMethod<TestAttribute> {
160
testBoolean(value: boolean): TestAttribute;
162
testNumber(value: number): TestAttribute;
164
testString(value: string): TestAttribute;
166
testEnum(value: EnumDTS): TestAttribute
168
testFunction(value: (a: number) => boolean): TestAttribute;
170
testBasicMix(v1: number, v2: string, v3: number): TestAttribute
174
testBooleanUndefined(value: boolean | undefined): TestAttribute;
176
testNumberUndefined(value: number | undefined): TestAttribute;
178
testStringUndefined(value: string | undefined): TestAttribute;
180
testEnumUndefined(value: EnumDTS | undefined): TestAttribute;
182
testFunctionUndefined(value: (a: number) => boolean | undefined): TestAttribute;
186
testUnionNumberEnum(val: number | EnumDTS): TestAttribute
188
testUnionBooleanString(val: boolean | string): TestAttribute
190
testUnionStringNumber(val: string | number): TestAttribute
192
testUnionBooleanStringNumberUndefined(val: boolean | string | number | undefined): TestAttribute
196
testBooleanArray(value: boolean[]): TestAttribute;
198
testNumberArray(value: number[]): TestAttribute;
200
testStringArray(value: string[]): TestAttribute;
202
testEnumArray(value: EnumDTS[]): TestAttribute
207
testArrayMix(v1: number[], v2: string[], v3: EnumDTS[]): TestAttribute;
214
testTupleBooleanNumber(value: [boolean, number]): TestAttribute;
216
testTupleNumberStringEnum(value: [number, string, EnumDTS]): TestAttribute;
220
testTupleOptional(value: [number, string, boolean, EnumDTS]): TestAttribute;
224
testTupleUnion(value: [(number | string), (boolean | EnumDTS), (string | EnumDTS | boolean)]): TestAttribute;
228
testArrayRefBoolean(value: Array<boolean>): TestAttribute
230
testArrayRefNumber(value: Array<number>): TestAttribute
236
testBooleanInterface(value: BooleanInterfaceDTS): TestAttribute
238
testNumberInterface(value: NumberInterfaceDTS): TestAttribute
240
testStringInterface(value: StringInterfaceDTS): TestAttribute
242
testUnionInterface(value: UnionInterfaceDTS): TestAttribute
244
testUnionOptional(value: UnionOptionalInterfaceDTS): TestAttribute
246
testTupleInterface(value: TupleInterfaceDTS): TestAttribute
248
testOptionInterface(value: OptionInterfaceDTS): TestAttribute
250
testArrayRefNumberInterface(value: ArrayRefNumberInterfaceDTS): TestAttribute
257
testBooleanInterfaceOption(value?: BooleanInterfaceDTS): TestAttribute
259
testBooleanInterfaceTuple(value: [BooleanInterfaceDTS]): TestAttribute
261
testBooleanInterfaceArray(value: BooleanInterfaceDTS[]): TestAttribute
263
testBooleanInterfaceArrayRef(value: Array<BooleanInterfaceDTS>): TestAttribute
265
testInterfaceMixed(v1: UnionInterfaceDTS, v2: number, v3: TupleInterfaceDTS): TestAttribute
269
testClass(value: ClassDTS): TestAttribute
271
testClassWithConstructor(value: ClassWithConstructorDTS): TestAttribute
273
testClassWithConstructorAndFields(value: ClassWithConstructorAndFieldsDTS): TestAttribute
277
testClassWithConstructorAndMethods(value: ClassWithConstructorAndMethodsDTS): TestAttribute
279
testClassWithConstructorAndStaticMethods(value: ClassWithConstructorAndStaticMethodsDTS): TestAttribute
281
testClassWithConstructorAndFieldsAndMethods(value: ClassWithConstructorAndFieldsAndMethodsDTS): TestAttribute
283
testClassWithConstructorAndNonOptionalParams(value: ClassWithConstructorAndNonOptionalParamsDTS): TestAttribute
285
testClassWithConstructorAndSomeOptionalParams(value: ClassWithConstructorAndSomeOptionalParamsDTS): TestAttribute
287
testClassWithConstructorAndAllOptionalParams(value: ClassWithConstructorAndAllOptionalParamsDTS): TestAttribute
289
testClassWithConstructorAndWithoutParams(value: ClassWithConstructorAndWithoutParamsDTS): TestAttribute