Skip to content

Commit 1c7aa19

Browse files
committed
1 parent 8cce1ce commit 1c7aa19

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

packages/@jscorlib-repo/linters/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
".": {
1414
"import": "./src/index.js",
1515
"types": "./src/index.d.js"
16+
},
17+
"./type-shims": {
18+
"types": "./src/type-shims.d.ts"
1619
}
1720
},
1821
"bin": {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export { };
2+
3+
declare global {
4+
// This is to make "@typescript-eslint/no-base-to-string" rule work properly.
5+
// https://github.com/microsoft/TypeScript/issues/38347
6+
interface Boolean {
7+
toString(): string;
8+
}
9+
interface Error {
10+
toString(): string;
11+
}
12+
}

packages/jscorlib/src/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"DOM.Iterable",
1818
"ESNext"
1919
],
20+
"types": [
21+
"@jscorlib-repo/linters/type-shims",
22+
],
2023
"sourceMap": true,
2124
"declaration": true,
2225
"declarationMap": true,

0 commit comments

Comments
 (0)