Skip to content

Deno.errors.NotFound incomplete type (and maybe others) #22807

@sigmaSd

Description

@sigmaSd

code exist at runtime but it does not exist on the type

Version: Deno 1.41.2

try {
  Deno.readTextFileSync("doesnt-exist");
} catch (e) {
  console.log((e as Deno.errors.NotFound).code);
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlygood first issueGood for newcomerstypesIssues related to TypeScript types

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions