figma / plugin-typings

Typings for the Figma Plugin API
MIT License
195 stars 45 forks source link

Replace const with var for console declaration #74

Closed k15a closed 2 years ago

k15a commented 3 years ago

This will allow the typings to be used with "lib": ["DOM"] or @types/node.

{
  "compilerOptions": {
    "lib": ["DOM", "ESNext"],
    "typeRoots": ["./node_modules/@types", "./node_modules/@figma"]
  }
}

Before it was failing with this error message:

Cannot redeclare block-scoped variable 'console'.