Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaitanLyss committed Sep 5, 2024
1 parent 1432ba6 commit c019897
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@selenite/commons",
"version": "0.25.0",
"version": "0.25.1",
"repository": "github:ShaitanLyss/selenite-commons",
"license": "MIT",
"keywords": [
Expand Down
4 changes: 3 additions & 1 deletion src/lib/actions/document.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { Action } from 'svelte/action';

export type DocumentParams = DocumentEventMap & AddEventListenerOptions;
export type DocumentParams = {
[key in keyof DocumentEventMap]: (event: DocumentEventMap[key]) => void;
} & AddEventListenerOptions;
export const documentListener: Action<Element, DocumentParams> = (node, params: DocumentParams) => {
function setup() {
Object.keys(params).forEach((key) => {
Expand Down

0 comments on commit c019897

Please sign in to comment.