NuxtN
Nuxt11mo ago
9 replies
Cesxhin

Ignore "type" for variables enum after build of module

I created simple enum:
file: module.ts

export enum test {
  HELLO = "hello"
}


After build into file types.d.ts there is "type test" but not work on project because I get this error from typescript:
"'test' cannot be used as a value because it was exported using 'export type'.ts-plugin(1362)"
Was this page helpful?