mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +00:00
Augment GuiCustomConfig in BOTH @hanzogui/web and @hanzogui/core, and declare @hanzogui/web + @hanzogui/core as devDeps so the 'declare module' targets resolve under pnpm strict nesting (npm-flat installs like console2 hoist them; pnpm does not). Result: tsc --noEmit clean (0 errors) and tsc build emits dist cleanly.
16 lines
497 B
TypeScript
16 lines
497 B
TypeScript
/**
|
|
* Registers our Gui config with the type system so component style props
|
|
* (tokens, themes, shorthands) are typed. `GuiCustomConfig` is declared in
|
|
* `@hanzogui/web` and re-exported across the Gui packages; augmenting it there
|
|
* flows the types through every `@hanzo/gui` component.
|
|
*/
|
|
import type { Conf } from './gui.config'
|
|
|
|
declare module '@hanzogui/web' {
|
|
interface GuiCustomConfig extends Conf {}
|
|
}
|
|
|
|
declare module '@hanzogui/core' {
|
|
interface GuiCustomConfig extends Conf {}
|
|
}
|