@blimu/types
v1.2.0
Published
TypeScript type definitions for Blimu simple types
Downloads
834
Readme
@blimu/types
TypeScript type definitions for Blimu simple types.
Overview
This package provides base type definitions for Blimu's simple types (ResourceType, EntitlementType, PlanType, etc.). These types are augmented by customer configuration via the blimu codegen command, which generates union types based on your Blimu configuration.
Installation
npm install @blimu/types
# or
yarn add @blimu/types
# or
pnpm add @blimu/typesUsage
After running blimu codegen in your project, the types in this package will be augmented with union types based on your configuration:
import type { ResourceType, EntitlementType } from '@blimu/types';
// After codegen, ResourceType might be:
// type ResourceType = 'organization' | 'workspace' | 'project';
// EntitlementType might be:
// type EntitlementType = 'organization:create_workspace' | 'workspace:delete';Types
- ResourceType: Resource type identifiers
- EntitlementType: Entitlement type identifiers
- PlanType: Plan type identifiers
- LimitType: Resource-based limit type identifiers
- UsageLimitType: Usage-based limit type identifiers
Type Augmentation
To augment these types with your configuration:
- Create a Blimu config file (
.blimu/config.mjsor.blimu/config.ts) - Run
blimu codegen - The generated
.blimu/blimu-types.d.tsfile will augment these types
Learn More
Visit https://blimu.com for documentation and more information.
