// @target: es6 // @module: commonjs // @filename: task.ts export class Task extends Promise { } // @filename: test.ts import { Task } from "./task"; class Test { async example(): Task { return; } }