Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
nigiwen committed Jun 28, 2024
1 parent 63d7a29 commit 01b627d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -594,4 +594,4 @@ class MutationMap<T extends HTMLElement, Data extends { position: number, text:
}
}

export const createMutationMap = <T extends HTMLElement>(el: T) => new MutationMap(el)
export const createMutationMap = <T extends HTMLElement, Data extends { position: number, text: string, isDRM: boolean, isUnusual: boolean }>(el: T) => new MutationMap<T, Data>(el)

0 comments on commit 01b627d

Please sign in to comment.