metonym / svelte-highlight

Syntax Highlighting for Svelte using highlight.js
https://svhe.onrender.com
MIT License
252 stars 13 forks source link

fix(types): style/lang types should use declare const #314

Closed metonym closed 8 months ago

metonym commented 8 months ago

There's a subtle but important difference between export const and export declare const when used in a type definition file.

declare should be used in this case, since it's a type definition file; the variable is exported elsewhere.