We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This seems to work for me, but I'm a TypeScript beginner and am probably doing a lot of things wrong:
// Modified from https://github.com/patrick-steele-idem/morphdom/pull/113/commits/0b6b2e87b5f1b193c40c4c64f25938846ccd4039 declare module "nanomorph" { interface NanomorphOptions { getNodeKey?: (node: Node) => any; onBeforeNodeAdded?: (node: Node) => Node; onNodeAdded?: (node: Node) => Node; onBeforeElUpdated?: (fromEl: HTMLElement, toEl: HTMLElement) => boolean; onElUpdated?: (el: HTMLElement) => void; onBeforeNodeDiscarded?: (node: Node) => boolean; onNodeDiscarded?: (node: Node) => void; onBeforeElChildrenUpdated?: ( fromEl: HTMLElement, toEl: HTMLElement ) => boolean; childrenOnly?: boolean; } namespace nanomorph { } function nanomorph( fromNode: Node, toNode: Node | string, options?: NanomorphOptions ): void; export default nanomorph; // Added "default" here. }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This seems to work for me, but I'm a TypeScript beginner and am probably doing a lot of things wrong:
The text was updated successfully, but these errors were encountered: