@types/html4-id
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/html4-id

Weekly Downloads

15

Version

1.0.2

License

MIT

Unpacked Size

3.32 kB

Total Files

5

Last publish

Collaborators

  • types