11 lines
241 B
TypeScript
11 lines
241 B
TypeScript
//// [asyncAliasReturnType_es6.ts]
|
|
type PromiseAlias<T> = Promise<T>;
|
|
|
|
async function f(): PromiseAlias<void> {
|
|
}
|
|
|
|
//// [asyncAliasReturnType_es6.js]
|
|
function f() {
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
});
|
|
}
|