TeaWeb/tools/dtsgen/test/test_01.ts
WolverinDEV bbc929d46d
Merged translation system (#17)
* A lots of translation changes (Generate translation files)

* Removed auto generated package lock file

* Implementation of the translation system, inc generators.

* improved loader error handling

* Finalizing the translation system.
Needs some tests and a final translation generation.
As well a handy translation mapper or editor would be likely.
May source this out into another project?

* Finalizing the translation system

* Finalized translation system and added polish and turkish google translation

* Finally done :)

* Fixed defautl repositories dosnt show up

* fixed settings not initialized
2018-12-15 14:04:29 +01:00

47 lines
No EOL
677 B
TypeScript

function test() : string {
return "IDK!";
}
class C {
}
function test2() : C {
return undefined;
}
// @ts-ignore
function test4() : D {
return undefined;
}
namespace T {
function C() {
}
export function D() {
}
}
namespace T {
namespace Y {
function T() {}
export function Y() {}
}
}
namespace T {
export async function async_void() {}
export async function async_any() : Promise<any> {
return "" as any;
}
export async function async_number() : Promise<number> {
return 0;
}
export async function async_number_string() : Promise<number | string> {
return 0;
}
}