digitinary-ui-types
v1.0.293
Published
Type declarations for digitinary-ui (auto-generated)
Downloads
1,240
Readme
digitinary-ui-types
Type-only package with TypeScript declaration files exported from the digitinary-ui UI library.
This package contains only .d.ts files (no runtime JS). It's intended for TypeScript consumers who
need type definitions and editor/IDE autocomplete without installing the full UI runtime.
Install
# install types only
npm install --save-dev digitinary-ui-types
# or install as a regular dependency
npm install digitinary-ui-typesQuick usage examples
- Import specific types (recommended — type-only import):
import type { AccordionProps, ButtonPropsType } from 'digitinary-ui-types'
function setupAccordion(props: AccordionProps) {
// props is typed
}- Use the types package alongside the runtime package:
import { Accordion } from 'digitinary-ui' // runtime component
import type { AccordionProps } from 'digitinary-ui-types' // types only
const props: AccordionProps = { summary: 'Title', children: 'Body' }Notes
- This package is declaration-only and contains no JavaScript code.
- The types are generated from the
digitinary-uisource. For correct typing, make sure thedigitinary-ui-typesversion matches thedigitinary-uiruntime version you consume. - If types are missing or seem out of date, request the package maintainer to publish a new release.
Compatibility
- Built for TypeScript projects (works with tsconfig defaults). Requires TypeScript-aware tooling in your editor to get IntelliSense.
Troubleshooting
- If your editor doesn't pick up types after installing, try restarting the TypeScript server (VS Code: Command Palette -> "TypeScript: Restart TS server").
- If you see a missing type error, verify the package version and check that the exported type
exists in the package (
node_modules/digitinary-ui-types/dist/types).
License
MIT
