Skip to content

Can not access name of export default async function #9423

Closed
@ghost

Description

TypeScript Version: next

Code

(with --target ES6)

export default async function foo() {}
foo();

Expected behavior:
foo can be accessed

Actual behavior:
src/index.ts(2,1): error TS2304: Cannot find name 'foo'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptES NextNew featurers for ECMAScript (a.k.a. ESNext)FixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions