walt icon indicating copy to clipboard operation
walt copied to clipboard

export as

Open poeticAndroid opened this issue 6 years ago • 0 comments

Feature Request

Overview

would be nice to export functions (and other stuff?) under a different name, not limited to valid javascript identifiers..

Impact

Some implementations might require modules to export functions under specific names, which might be a javascript keyword or contain special characters.

Details

Maybe something like this?

export as "break" function exit():void { ... };
// or
export function exit():void { ... } as "break";
// or
function exit():void { ... }
export exit as "break";

poeticAndroid avatar Jul 28 '18 22:07 poeticAndroid