@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.json to emit JS (set emitDeclarationOnly to false) or provide a small runtime entry manually.
  • The package entry is index.ts which re-exports src.

Dependencies

Peer dependencies

ID Version
@angular/core ^21.2.0
Details
npm
2026-04-04 09:04:08 +00:00
42
Oliver Kierepka
23 KiB
Assets (1)
Versions (3) View all
0.2.0 2026-04-22
0.1.12 2026-04-20
0.1.11 2026-04-04