UNPKG

ts2dart

Version:

Transpile TypeScript code to Dart

14 lines (11 loc) 247 B
import {msg} from 'mapped/dep'; function handle(v: any) { return v; } export function main() { console.log(msg); Promise.resolve(null) .then((x) => console.log(1)) .then(handle, handle) .catch((e) => console.error(e)); }