mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
11 lines
243 B
TypeScript
11 lines
243 B
TypeScript
// @target: es5
|
|
// @lib: es5,es2015.promise
|
|
// @module: commonjs
|
|
// @filename: task.ts
|
|
export class Task<T> extends Promise<T> { }
|
|
|
|
// @filename: test.ts
|
|
import { Task } from "./task";
|
|
class Test {
|
|
async example<T>(): Task<T> { return; }
|
|
} |