UNPKG

ttls-helpers

Version:

Helpers for generating valid strings for various languages.

10 lines 619 B
export declare function spread(attrs: Record<string, unknown>, prefix?: string): string; export declare function ifDefined(key: string, value: unknown, prefix?: string): string; export type ClassValue = string | number | boolean | null | undefined | ClassValue[] | { [key: string]: any; }; export declare function toClassString(...anys: ClassValue[]): string; export type StyleValue = string | Record<string, string | number> | null | undefined; export declare function toStyleString(...styles: StyleValue[]): string; export declare function getUniqueId(prefix?: string): string; //# sourceMappingURL=index.d.ts.map