diff --git a/client/declarations/exports.d.ts b/client/declarations/exports.d.ts deleted file mode 100644 index 58d33e07..00000000 --- a/client/declarations/exports.d.ts +++ /dev/null @@ -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(); -} diff --git a/tools/dtsgen/test/test_o6.ts b/tools/dtsgen/test/test_o6.ts new file mode 100644 index 00000000..84487dc1 --- /dev/null +++ b/tools/dtsgen/test/test_o6.ts @@ -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() {} +} \ No newline at end of file