Skip to content

Commit

Permalink
Upgrade dependencies (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpurra authored and sindresorhus committed Jan 21, 2020
1 parent aeb3f74 commit c842cc2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@
"types"
],
"devDependencies": {
"@sindresorhus/tsconfig": "^0.6.0",
"@sindresorhus/tsconfig": "^0.7.0",
"@types/jsdom": "^12.2.4",
"@types/node": "^12.12.6",
"@types/zen-observable": "^0.8.0",
"@typescript-eslint/eslint-plugin": "^1.11.0",
"@typescript-eslint/parser": "^1.11.0",
"@typescript-eslint/eslint-plugin": "^2.17.0",
"@typescript-eslint/parser": "^2.17.0",
"ava": "^2.1.0",
"del-cli": "^2.0.0",
"eslint-config-xo-typescript": "^0.15.0",
"eslint-config-xo-typescript": "^0.24.1",
"jsdom": "^15.0.0",
"rxjs": "^6.4.0",
"tempy": "^0.3.0",
"ts-node": "^8.3.0",
"typescript": "^3.7.2",
"typescript": "^3.7.5",
"xo": "^0.25.3",
"zen-observable": "^0.8.8"
},
Expand All @@ -80,6 +80,9 @@
"extensions": [
"ts"
],
"parserOptions": {
"project": "./tsconfig.xo.json"
},
"globals": [
"BigInt",
"BigInt64Array",
Expand Down
2 changes: 1 addition & 1 deletion source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ is.typedArray = (value: unknown): value is TypedArray => {
};

export interface ArrayLike<T> {
readonly length: number;
readonly [index: number]: T;
readonly length: number;
}

const isValidLength = (value: unknown): value is number => is.safeInteger(value) && value >= 0;
Expand Down
2 changes: 1 addition & 1 deletion test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ const testType = (t: ExecutionContext, type: string, exclude?: string[]) => {
for (const [key, {fixtures}] of types) {
// TODO: Automatically exclude value types in other tests that we have in the current one.
// Could reduce the use of `exclude`.
if (exclude && exclude.includes(key)) {
if (exclude?.includes(key)) {
continue;
}

Expand Down
6 changes: 6 additions & 0 deletions tsconfig.xo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"include": [
"test"
]
}

0 comments on commit c842cc2

Please sign in to comment.