mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Updated baselines
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// @target:es5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec get accessor() { return 1; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target:es5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec public get accessor() { return 1; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target:es5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
public @dec get accessor() { return 1; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target:es5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec set accessor(value: number) { }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target:es5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec public set accessor(value: number) { }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target:es5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
public @dec set accessor(value: number) { }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec constructor() {}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec(target: Function, parameterIndex: number): void;
|
||||
|
||||
class C {
|
||||
constructor(@dec p: number) {}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec(target: Function, parameterIndex: number): void;
|
||||
|
||||
class C {
|
||||
constructor(public @dec p: number) {}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
class C {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @module: commonjs
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
export class C {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// @module: commonjs
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
export
|
||||
@dec
|
||||
class C {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec(): <T>(target: T) => T;
|
||||
|
||||
@dec()
|
||||
class C {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec(): <T>(target: T) => T;
|
||||
|
||||
@dec()
|
||||
class C {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec(): (target: Function, paramIndex: number) => void;
|
||||
|
||||
@dec()
|
||||
class C {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec method() {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec(target: Function, paramIndex: number): void;
|
||||
|
||||
class C {
|
||||
@dec method() {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec public method() {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
public @dec method() {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES6
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec ["method"]() {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES6
|
||||
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec() ["method"]() {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES6
|
||||
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec ["method"]() {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES6
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec public ["method"]() {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
class C {
|
||||
@dec method() {}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec(target: Function, parameterIndex: number): void;
|
||||
|
||||
class C {
|
||||
method(@dec p: number) {}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec prop;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec() prop;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec prop;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<number>;
|
||||
|
||||
class C {
|
||||
@dec prop;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<number>;
|
||||
|
||||
class C {
|
||||
@dec prop: string;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
@dec public prop;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
|
||||
|
||||
class C {
|
||||
public @dec prop;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec(target: Function): void;
|
||||
|
||||
class C {
|
||||
@dec prop;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @target: ES5
|
||||
declare function dec(target: Function, paramIndex: number): void;
|
||||
|
||||
class C {
|
||||
@dec prop;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
var F = @dec () => {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
enum E {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
enum E {
|
||||
@dec A
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
function F() {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
var F = @dec function () {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
module M1 {
|
||||
export var X: number;
|
||||
}
|
||||
|
||||
module M2 {
|
||||
@dec
|
||||
import X = M1.X;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// @module: commonjs
|
||||
// @Filename: decoratorOnImportEquals2_0.ts
|
||||
export var X;
|
||||
|
||||
// @Filename: decoratorOnImportEquals2_1.ts
|
||||
@dec
|
||||
import lib = require('./decoratorOnImportEquals2_0');
|
||||
|
||||
declare function dec<T>(target: T): T;
|
||||
@@ -0,0 +1,5 @@
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
interface I {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
module M {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
type T = number;
|
||||
@@ -0,0 +1,4 @@
|
||||
declare function dec<T>(target: T): T;
|
||||
|
||||
@dec
|
||||
var x: number;
|
||||
Reference in New Issue
Block a user