@thinkform/tokens (0.2.0)
Published 2026-04-22 13:59:01 +00:00 by oliverkierepka
Installation
@thinkform:registry=npm install @thinkform/tokens@0.2.0"@thinkform/tokens": "0.2.0"About this package
@thinkform/tokens
Shared DI tokens and types used across ThinkForm projects.
This package exports CONTACT_SERVICE and related typings for sharing a contact adapter implementation between apps and libs.
Usage
-
Build the tokens library:
pnpm nx build @thinkform/tokens
-
Import the token and types in your code:
import { CONTACT_SERVICE, ContactAdapter } from '@thinkform/tokens'
// Example: provide a concrete adapter in an Angular module providers: [ { provide: CONTACT_SERVICE, useValue: { send: (payload) => { /* ... / }, openDefaultScheduler: () => { / ... */ } } as ContactAdapter } ]
Notes
- The library is configured to emit TypeScript declarations only (d.ts). If you need the runtime JS entrypoint as well, update
tsconfig.lib.jsonto emit JS (setemitDeclarationOnlyto false) or provide a small runtime entry manually. - The package entry is
index.tswhich re-exportssrc.
Dependencies
Peer dependencies
| ID | Version |
|---|---|
| @angular/core | ^21.2.0 |
Details
2026-04-22 13:59:01 +00:00
Assets (1)
Versions (3)
View all
npm
10
Oliver Kierepka
latest
22 KiB
tokens-0.2.0.tgz
22 KiB