ThemeConfig #
Theme configuration of a site. The interface is empty on purpose: a theme or a plugin adds the fields it understands from its own package, and every package that is imported contributes to the same type.
TypeScript
interface ThemeConfigNotes #
TypeScript
declare module 'kawapress' {
interface ThemeConfig {
socialLinks?: { icon: string, link: string }[]
}
}A field only exists in the type while the package that declares it is part of the program, so give every field an optional type: the site may not use it.


Comments