UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

11 lines (10 loc) 465 B
import { Get } from './Get'; export type Text = { toString(): string; }; export declare const isText: (t?: unknown) => t is Text; export declare const asString: (t?: unknown, alt?: Get<Text>) => string; export declare const replaceAll: (origin: Text, search: Text, replace?: Text) => string; export declare const toWords: (input: unknown) => string[]; export declare const kebab: (s?: string) => string; export declare const capitalize: (s?: string) => string;