11 lines
162 B
TypeScript
11 lines
162 B
TypeScript
|
//// [decoratorOnFunctionDeclaration.ts]
|
||
|
declare function dec<T>(target: T): T;
|
||
|
|
||
|
@dec
|
||
|
function F() {
|
||
|
}
|
||
|
|
||
|
//// [decoratorOnFunctionDeclaration.js]
|
||
|
function F() {
|
||
|
}
|