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