Installation
npm install --save @types/html4-id
Summary
This package contains type definitions for html4-id (https://www.npmjs.com/package/html4-id).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/html4-id.
index.d.ts
/**
* Create a valid HTML4 ID from an input value.
*/
export as namespace idify;
/**
* Removes invalid characters and generates an id meant to be used for HTML elements.
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id|MDN} for the note about invalid characters.
*/
declare function createId(input: string): string;
export = createId;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Piotr Błażejewicz.