@dfinity/gix-components
Version:
A UI kit developed by the GIX team
9 lines (8 loc) • 312 B
TypeScript
/**
* Sanitize a text with DOMPurify.
*
* Note: this library needs a workaround to work in the NodeJS context - i.e. for our vitest test suite.
* See the vitest.setup.ts for details.
*/
export declare const sanitize: (text: string) => string;
export declare const nextElementId: (prefix: string) => string;