UNPKG

@itrocks/core-transformers

Version:

Prefabricated HTML and SQL data transformers for it.rocks primitives and basic types

20 lines (19 loc) 971 B
import { AnyObject } from '@itrocks/class-type'; import { Type } from '@itrocks/class-type'; export type SqlDependencies = { ignoreTransformedValue: any; }; export type Dependencies = SqlDependencies & { displayOf: (object: AnyObject, property: string) => string; fieldIdOf: (property: string) => string; fieldNameOf: (property: string) => string; representativeValueOf: (object: object) => Promise<string>; routeOf: (type: Type) => string; tr: (text: string) => string; }; export declare function initStoreHtmlTransformers(target: Type): void; export declare function initStoreSqlTransformers(target: Type): void; export declare function initStoreTransformers(target: Type): void; export declare function setStoreDependencies(dependencies: Partial<Dependencies>): void; export declare const setStoreHtmlDependencies: typeof setStoreDependencies; export declare const setStoreSqlDependencies: (dependencies: Partial<SqlDependencies>) => void;