Skip to content

Commit

Permalink
Use <reference />
Browse files Browse the repository at this point in the history
  • Loading branch information
qnighy committed Mar 7, 2021
1 parent 4ef76c5 commit 614b1fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion types/jest/global-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
// This file enables users to specify `types: ["jest/global-types"]` in tsconfig.json
// to clarify their intention.

import "./index";
/// <reference path="./index.d.ts" />
2 changes: 1 addition & 1 deletion types/jest/test/global-types-tests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "./global-types";
/// <reference path="../global-types.d.ts" />

describe("42", () => {
expect(42).toBe(42);
Expand Down
7 changes: 6 additions & 1 deletion types/jest/tslint.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{ "extends": "dtslint/dt.json" }
{
"extends": "dtslint/dt.json",
"rules": {
"no-bad-reference": false
}
}

0 comments on commit 614b1fd

Please sign in to comment.