41 lines
981 B
Text
41 lines
981 B
Text
=== tests/cases/conformance/decorators/class/a.ts ===
|
|
|
|
// from #3108
|
|
export var test = 'abc';
|
|
>test : string
|
|
>'abc' : string
|
|
|
|
=== tests/cases/conformance/decorators/class/b.ts ===
|
|
import { test } from './a';
|
|
>test : string
|
|
|
|
function filter(handler: any) {
|
|
>filter : (handler: any) => (target: any, propertyKey: string) => void
|
|
>handler : any
|
|
|
|
return function (target: any, propertyKey: string) {
|
|
>function (target: any, propertyKey: string) { // ... } : (target: any, propertyKey: string) => void
|
|
>target : any
|
|
>propertyKey : string
|
|
|
|
// ...
|
|
};
|
|
}
|
|
|
|
class Wat {
|
|
>Wat : Wat
|
|
|
|
@filter(() => test == 'abc')
|
|
>filter(() => test == 'abc') : (target: any, propertyKey: string) => void
|
|
>filter : (handler: any) => (target: any, propertyKey: string) => void
|
|
>() => test == 'abc' : () => boolean
|
|
>test == 'abc' : boolean
|
|
>test : string
|
|
>'abc' : string
|
|
|
|
static whatever() {
|
|
>whatever : () => void
|
|
|
|
// ...
|
|
}
|
|
}
|