file cleanup
parent
cc2fdb3cf4
commit
11bb4ab218
|
@ -1,8 +0,0 @@
|
|||
|
||||
/* File: client/js/teaforo.ts */
|
||||
declare namespace forum {
|
||||
export function register_callback(callback: () => any);
|
||||
export function open();
|
||||
export function logout();
|
||||
export function sync_main();
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
function f() {
|
||||
console.log("f(): evaluated");
|
||||
return function (target, propertyKey: string, descriptor: PropertyDescriptor) {
|
||||
console.log("f(): called");
|
||||
}
|
||||
}
|
||||
|
||||
function g() {
|
||||
console.log("g(): evaluated");
|
||||
return function (target, propertyKey: string, descriptor: PropertyDescriptor) {
|
||||
console.log("g(): called");
|
||||
}
|
||||
}
|
||||
|
||||
class C {
|
||||
@f()
|
||||
@g()
|
||||
method() {}
|
||||
}
|
Loading…
Reference in New Issue