const BoxTrait:
Trait<Defaulted<InputTypes<{ grow: (value?: number) => number, shrink: (value?: number) => number, margin: (m?: MarginLike) => XYZW, inline: (t?: string) => "start" | "center" | "end" | "base" | "base-center" | undefined, flex: (t?: string) => "start" | "center" | "end" | undefined }>, { shrink: number }>,
OutputTypes<{ grow: (value?: number) => number, shrink: (value?: number) => number, margin: (m?: MarginLike) => XYZW, inline: (t?: string) => "start" | "center" | "end" | "base" | "base-center" | undefined, flex: (t?: string) => "start" | "center" | "end" | undefined }>>
= (
input: A,
output: B,
hooks: UseHooks,
) => void
packages / layout / src / traits.ts