taiga-family/prettier-plugins

๐Ÿž - Argument in a type import must be a string literal

Closed this issue ยท 0 comments

Which package(s) are the source of the bug?

@taiga-ui/prettier-plugin-backticks

Description

Source code:

type Module = typeof import('module');

Actual behavior

Result code:

type Module = typeof import('module');

Expected behavior

Expected code:

type Module = typeof import(`module`); // SyntaxError: Argument in a type import must be a string literal

Package version

1.0.2