@billdog.io/types
v1.0.0-beta.1
Published
Schema-generated types for BillDog SDK - Single source of truth
Downloads
151
Readme
@billdog.io/types
Schema-generated TypeScript types for BillDog SDK. This package is the single source of truth for all type definitions across the platform.
Installation
npm install @billdog.io/typesUsage
import type {
FillValue,
Appearance,
Typography,
Transform,
Border,
Shadow,
ComponentLayout,
ComponentSize
} from '@billdog.io/types';
// Use in your components
const myFill: FillValue = {
type: 'gradient',
gradient: {
type: 'linear',
angle: 90,
stops: [
{ color: '#ff0000', position: 0 },
{ color: '#0000ff', position: 100 }
]
}
};Generated From Schemas
These types are automatically generated from the JSON schemas in src/schemas/:
| Schema | Types |
|--------|-------|
| fill.schema.json | FillValue, GradientStop, GradientConfig, ImageFillConfig |
| appearance.schema.json | Appearance, BackgroundColorObject |
| typography.schema.json | Typography, TextColorObject |
| transform.schema.json | Transform |
| border.schema.json | Border, BorderSide, BorderRadius |
| shadow.schema.json | Shadow |
| layout.schema.json | ComponentLayout, SpacingValue, UnitValue |
| size.schema.json | ComponentSize, SizeValue |
Architecture
Types are manually maintained and derived from the JSON schemas in src/schemas/. All platforms share the same schema definitions, ensuring zero drift between implementations.
License
MIT
