UNPKG

990 BTypeScriptView Raw
1import { SimpleNode, SimpleDocumentFragment } from '@simple-dom/interface';
2export interface SafeString {
3 toHTML(): string;
4}
5export declare type Insertion = CautiousInsertion | TrustingInsertion;
6export declare type CautiousInsertion = string | SafeString | SimpleNode;
7export declare type TrustingInsertion = string | SimpleNode;
8export declare function normalizeStringValue(value: unknown): string;
9export declare function normalizeTrustedValue(value: unknown): TrustingInsertion;
10export declare function shouldCoerce(value: unknown): value is string | number | boolean | null | undefined;
11export declare function isEmpty(value: unknown): boolean;
12export declare function isSafeString(value: unknown): value is SafeString;
13export declare function isNode(value: unknown): value is SimpleNode;
14export declare function isFragment(value: unknown): value is SimpleDocumentFragment;
15export declare function isString(value: unknown): value is string;
16//# sourceMappingURL=normalize.d.ts.map
\No newline at end of file