@thinkform/tokens (0.1.11)
Published 2026-04-04 09:04:08 +00:00 by oliverkierepka
Installation
@thinkform:registry=npm install @thinkform/tokens@0.1.11"@thinkform/tokens": "0.1.11"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-04 09:04:08 +00:00
Assets (1)
Versions (3)
View all
npm
42
Oliver Kierepka
23 KiB
tokens-0.1.11.tgz
23 KiB