Skip to content

Commit

Permalink
refactor: Edited global.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
iliubinskii committed Aug 27, 2024
1 parent c09a5a5 commit c556efa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/global.d.ts → src/global-declare.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// eslint-disable-next-line misc/comment-spacing -- Ok
/// <reference types="jest-extended" />
/* eslint import/no-extraneous-dependencies: ["warn", { "devDependencies": true }] -- Ok */

import type { CSSProperties, DetailedHTMLProps, HTMLAttributes } from "react";
import type { Jwt } from "./schema";
import type jestExtended from "jest-extended";

type JestExtended = typeof jestExtended;

declare global {
namespace JSX {
Expand All @@ -15,9 +17,8 @@ declare global {
}

declare module "@jest/expect" {
export interface Matchers<R>
// eslint-disable-next-line no-undef -- Ok
extends CustomMatchers<R> {}
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- Ok
export interface Matchers<R> extends JestExtended {}
}

declare module "express-serve-static-core" {
Expand Down
1 change: 1 addition & 0 deletions src/global-reference.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="jest-extended" />

0 comments on commit c556efa

Please sign in to comment.