Installation
npm install --save @types/drupal-attribute
Summary
This package contains type definitions for drupal-attribute (https://github.com/ericmorand/drupal-attribute).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/drupal-attribute.
index.d.ts
declare class DrupalAttribute extends Map {
constructor(it: any);
addClass(...args: string[]): this;
removeClass(value: string): this;
hasClass(value: string): boolean;
setAttribute(key: string, value: string): this;
removeAttribute(key: string): this;
toString(): string;
}
export = DrupalAttribute;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Victor Castro-Cintas.