-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
945947c
commit 60d75bd
Showing
4 changed files
with
138 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
type ObjectKey = string | number | symbol; | ||
interface Options { | ||
callbacks: Callbacks; | ||
ignoreActiveValue: boolean; | ||
preserveModifiedValues: boolean; | ||
} | ||
interface Callbacks { | ||
beforeNodeMorphed?: (node: Node, referenceNode: Node) => boolean; | ||
afterNodeMorphed?: (node: Node) => void; | ||
ignoreActiveValue?: boolean; | ||
preserveModifiedValues?: boolean; | ||
beforeNodeAdded?: (newNode: Node, parentNode: ParentNode | null) => boolean; | ||
afterNodeAdded?: (newNode: Node) => void; | ||
beforeNodeRemoved?: (oldNode: Node) => boolean; | ||
afterNodeRemoved?: (oldNode: Node) => void; | ||
beforeAttributeUpdated?: (attributeName: string, newValue: string, element: Element) => boolean; | ||
afterAttributeUpdated?: (attributeName: string, previousValue: string | null, element: Element) => void; | ||
beforePropertyUpdated?: (propertyName: string | number | symbol, newValue: unknown, node: Node) => boolean; | ||
afterPropertyUpdated?: (propertyName: string | number | symbol, previousValue: unknown, node: Node) => void; | ||
beforePropertyUpdated?: (propertyName: ObjectKey, newValue: unknown, node: Node) => boolean; | ||
afterPropertyUpdated?: (propertyName: ObjectKey, previousValue: unknown, node: Node) => void; | ||
} | ||
export declare function morph(node: ChildNode, reference: ChildNode, opts: Options): void; | ||
export declare function morph(node: ChildNode, reference: ChildNode, options?: Options): void; | ||
export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.