Skip to content

Commit

Permalink
fixup: revert options type to match dom-testing-library
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed Jan 26, 2024
1 parent 3d046eb commit 0314335
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ module.exports = {
'prettier',
],
rules: {
'@typescript-eslint/ban-types': [
'error',
{ types: { '{}': false }, extendDefaults: true },
],
'@typescript-eslint/no-explicit-any': 'off',
'import/export': 'off',
},
Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function cleanup(): void
export type FireFunction = (element: Document | Element | Window, event: Event) => Promise<boolean>;

export type FireObject = {
[K in EventType]: (element: Document | Element | Window, options?: Record<string, unknown>) => Promise<boolean>;
[K in EventType]: (element: Document | Element | Window, options?: {}) => Promise<boolean>;
};

export const fireEvent: FireFunction & FireObject;
Expand Down

0 comments on commit 0314335

Please sign in to comment.