dce-crosstypes
v1.0.2
Published
Types shared across Harvard EdTech projects
Downloads
187
Readme
dce-crosstypes
A collection of shared types across apps that a component or feature uses. Shared types are organized by specific projects/features rather than entire apps.
Adding New Types
When adding new shared types to this library, add them under a folder that is named
after the intended feature. For example, for a project that is called Engagement:
/src/Engagement/{your-type-here}.tsUsual EdTech typing rules apply, with types that contain subtypes being bundled in the
same folder (e.g. /src/Engagement/{your-main-type}/{your-subtype}.ts)
After adding all of your types, be sure to import and export in the index.ts
file in src.
Quickstart
- Install
dce-crosstypesinto your project:
npm install dce-crosstypes --save- Import
dce-crosstypescomponents into your file:
import { ComplianceBundle } from 'dce-crosstypes';