mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
10 lines
215 B
TypeScript
10 lines
215 B
TypeScript
|
// @target: es6
|
||
|
// @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; }
|
||
|
}
|