-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
It would be nice to have TypeScript typings included in the htl package. Adding an index.d.ts file with the following content should be sufficient to import and use the package:
export declare const html: { <T extends HTMLElement | Text>(...args: any[]): T, fragment(...args: any[]): DocumentFragment };
export declare const svg: { <T extends SVGElement | Text>(...args: any[]): T, fragment(...args: any[]): DocumentFragment };
Let me know if you want a proper pull request or if the example code above is enough.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels