fix: Cannot set property attributeName of #<MutationRecord> which has only a getter (#1173)
* fix: Cannot set property attributeName of #<MutationRecord> which has only a getter * fix: attributeName readonly
This commit is contained in:
@@ -265,14 +265,14 @@ export type hooksParam = {
|
||||
};
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-mutationrecord
|
||||
export type mutationRecord = {
|
||||
export type mutationRecord = Readonly<{
|
||||
type: string;
|
||||
target: Node;
|
||||
oldValue: string | null;
|
||||
addedNodes: NodeList;
|
||||
removedNodes: NodeList;
|
||||
attributeName: string | null;
|
||||
};
|
||||
}>;
|
||||
|
||||
export type textCursor = {
|
||||
node: Node;
|
||||
|
||||
Reference in New Issue
Block a user