TypeScript type definitions for CSL-JSON, compiled styles, and registry
Package Exports
@citestyle/types
Readme
@citestyle/types
TypeScript type definitions for the Citestyle ecosystem. Covers CSL-JSON data structures, compiled style modules, the citation registry, and all public APIs.
You get these types automatically when using any @citestyle/* package — each package's exports map includes a types condition that points here. Install this package directly only if you need to import types without pulling in a runtime package.
Installation
npminstall-D @citestyle/types
Types
CSL-JSON data
Type
Description
CslItem
A citation item with all standard CSL-JSON fields (70+), plus year-suffix and an index signature for extended fields
CslName
Name object: family, given, non-dropping-particle, dropping-particle, suffix, literal
CslDate
Date object: date-parts, literal, raw, season, circa
CslItemType
Union of all 40+ CSL item type strings
Compiled style modules
Type
Description
CompiledStyle
A compiled style module: meta, bibliography(), citation(), bibliographySort()