mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +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; }
|
|
} |