@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
16 lines (15 loc) • 558 B
TypeScript
import { type Tree } from '@angular-devkit/schematics';
import { type TuiSchema } from '../../../ng-add/schema';
/**
* Migrates addon-doc i18n token providers from plain values to signal-wrapped values.
*
* These tokens changed their type from `string`/`[string, string, string]`
* to `Signal<string>` in v5.
*
* Before:
* { provide: TUI_DOC_SOURCE_CODE_TEXT, useValue: 'GitHub' }
*
* After:
* { provide: TUI_DOC_SOURCE_CODE_TEXT, useValue: signal('GitHub') }
*/
export declare function migrateDocI18nTokens(tree: Tree, options: TuiSchema): void;