Skip to content

It would be nice if twoslash-cli parses defaultCompilerOptions #182

Open
@vilicvane

Description

@vilicvane

Took me some time to realize that I have to specify the actual enum value to make the defaultCompilerOptions work:

<!-- twoslash: {
  defaultCompilerOptions: {
    moduleResolution: 99 // NodeNext
  }
} -->

Search terms:

  • Cannot find module or its corresponding type declarations.
  • Unexpected moduleResolution: NodeNext

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or requestYou can do thisThe idea is well specified and good for a PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions