npm.io
1.0.0-beta.1 • Published 5d ago

@billdog.io/types

Licence
MIT
Version
1.0.0-beta.1
Deps
0
Size
51 kB
Vulns
0
Weekly
0

@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/types

Usage

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

Keywords