We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
declare
.d.ts
1 parent cd2a6d9 commit 142d55cCopy full SHA for 142d55c
2 files changed
packages/langs/scripts/langs.ts
@@ -156,7 +156,7 @@ export { default } from './${json.name}.mjs'
156
await fs.writeFile(
157
`./dist/${name}.d.mts`,
158
`import type { LanguageRegistration } from '@shikijs/types'
159
-const langs: LanguageRegistration []
+declare const langs: LanguageRegistration[]
160
export default langs
161
`,
162
'utf-8',
packages/themes/scripts/themes.ts
@@ -17,7 +17,7 @@ export default Object.freeze(JSON.parse(${JSON.stringify(JSON.stringify(theme))}
17
18
`./dist/${t.name}.d.mts`,
19
`import type { ThemeRegistration } from '@shikijs/core'
20
-const theme: ThemeRegistration
+declare const theme: ThemeRegistration
21
export default theme
22
23
0 commit comments