Skip to content

Commit

Permalink
Fix exported type, resolve "is not a module" error in ts (#559)
Browse files Browse the repository at this point in the history
* fix: "is not a module" ts error.

* fix: vitest compatibility, following testing-library example.
  • Loading branch information
Codex- committed Apr 13, 2023
1 parent 4617269 commit 18680e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion types/index.d.ts
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */

interface CustomMatchers<R> {
interface CustomMatchers<R> extends Record<string, any> {
/**
* Note: Currently unimplemented
* Passing assertion
Expand Down Expand Up @@ -884,3 +884,8 @@ declare namespace Vi {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface AsymmetricMatchersContaining extends CustomMatchers<any> {}
}

declare module 'jest-extended' {
const matchers: CustomMatchers<any>;
export = matchers;
}

0 comments on commit 18680e8

Please sign in to comment.