Skip to content

Commit 7768f22

Browse files
committed
Add workaround for types bug
1 parent 05db6fc commit 7768f22

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

config.types.d.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
import { Config } from './config'
22

3-
// Provide custom type information for config, overriding the default empty types.
4-
// TODO: Remove this as soon as https://github.com/nuxt/framework/issues/1785 is resolved.
3+
interface NuxtIconModuleOptions {
4+
size?: string | false
5+
class?: string
6+
aliases?: { [alias: string]: string }
7+
}
8+
59
declare module '@nuxt/schema' {
10+
// Provide custom type information for config, overriding the default empty types.
11+
// TODO: Remove this as soon as https://github.com/nuxt/framework/issues/1785 is resolved.
612
// eslint-disable-next-line @typescript-eslint/no-empty-interface -- Don't know how to reexport in a module declariation
713
interface RuntimeConfig extends Config {}
14+
15+
// Workaround for bug in icon modules
16+
// TODO: Remove this as soon as https://github.com/nuxt-modules/icon/pull/63 is merged/resolved.
17+
interface AppConfig {
18+
nuxtIcon?: NuxtIconModuleOptions
19+
}
820
}
921

1022
// Provide custom type information for page metadata

0 commit comments

Comments
 (0)