Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 11, 2023
1 parent 683d958 commit cc01e51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"devDependencies": {
"@sindresorhus/tsconfig": "~0.7.0",
"expect-type": "^0.15.0",
"tsd": "^0.28.0",
"typescript": "^5.0.2",
"xo": "^0.53.1"
"tsd": "^0.28.1",
"typescript": "^5.0.4",
"xo": "^0.54.2"
},
"peerDependencies": {
"typescript": ">=4.7.0"
Expand All @@ -50,7 +50,8 @@
"@typescript-eslint/naming-convention": "off",
"import/extensions": "off",
"@typescript-eslint/no-redeclare": "off",
"@typescript-eslint/no-confusing-void-expression": "off"
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/no-unsafe-argument": "off"
}
},
"tsd": {
Expand Down
2 changes: 2 additions & 0 deletions test-d/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ expectType<IsNumeric<'1 2'>>(false);
expectType<IsNumeric<'1_200'>>(false);
expectType<IsNumeric<' 1 '>>(false);

/* eslint-disable @typescript-eslint/no-duplicate-type-constituents */
expectType<IsNotFalse<true>>(true);
expectType<IsNotFalse<boolean>>(true);
expectType<IsNotFalse<true | false>>(true);
expectType<IsNotFalse<true | false | false | false>>(true);
expectType<IsNotFalse<false>>(false);
expectType<IsNotFalse<false | false>>(false);
expectType<IsNotFalse<false | false | false | false>>(false);
/* eslint-enable @typescript-eslint/no-duplicate-type-constituents */

// https://www.typescriptlang.org/docs/handbook/type-compatibility.html
expectType<IsNull<null>>(true);
Expand Down

0 comments on commit cc01e51

Please sign in to comment.