mirror of
https://github.com/hanzoai/store.git
synced 2026-10-30 14:54:46 +00:00
22 lines
782 B
TypeScript
22 lines
782 B
TypeScript
/**
|
|
* Registers @hanzo/gui's v5 config with the type system, so the shorthand style
|
|
* props this app is written in (`items` / `justify` / `minH` / `self` /
|
|
* `rounded` / `bg` …) resolve to their concrete types.
|
|
*
|
|
* The v5 config sets `onlyShorthandStyleProps`, so the shorthands ARE the API —
|
|
* without this augmentation TypeScript sees only the base React Native props and
|
|
* every one of them reads as an unknown prop. Ambient + type-only.
|
|
*/
|
|
import type { createGui } from '@hanzo/gui'
|
|
import type { defaultConfig } from '@hanzogui/config/v5'
|
|
|
|
type Conf = ReturnType<typeof createGui<typeof defaultConfig>>
|
|
|
|
declare module '@hanzogui/web' {
|
|
interface GuiCustomConfig extends Conf {}
|
|
}
|
|
|
|
declare module '@hanzogui/core' {
|
|
interface GuiCustomConfig extends Conf {}
|
|
}
|