@flatkit/types
v0.22.0
Published
Shared types for the FlatInk format (Doc, Layer, Item, …). The leaf of the dependency graph.
Downloads
1,008
Maintainers
Readme
@flatkit/types
Shared TypeScript types for the FlatInk animation format — Doc,
Layer, Item, Timeline, Path, and friends. The leaf of the
flatkit dependency graph: zero runtime, zero dependencies.
You rarely install this directly — @flatkit/engine,
@flatkit/player, and
@flatkit/compiler re-export the types you need. Reach
for it when you want to type a .flatpack document on its own.
Install
pnpm add -D @flatkit/typesUsage
import type { Doc, Layer, Text } from '@flatkit/types'
const doc: Doc = JSON.parse(flatpackJson)