fid-data-models
v1.0.3
Published
Private shared Library to be used on both Backend and Frontend
Downloads
253
Readme
data-models
data-models is a TypeScript package containing shared data models (interfaces and types) used across backend and frontend applications. This package provides consistency in data structures and ensures type safety in TypeScript projects.
Installation
Install the package using npm:
npm i fid-data-models
Usage
Import the interfaces in your TypeScript or JavaScript code:
import { Project, RenderSchema } from 'fid-data-models';
Available Interfaces:
- Project: Contains properties for project-related data, such as latitude, longitude, modules, etc.
- RenderSchema: Defines the structure for rendering data, including stages, categories, and dynamic content.
Build
To compile the TypeScript files, run:
npm run build