lint/typecheck fixes

This commit is contained in:
itsMapleLeaf
2022-04-25 19:58:47 -05:00
parent fc3025baaf
commit 8a7557f0eb
7 changed files with 799 additions and 808 deletions

View File

@@ -1,5 +1,6 @@
import { expect, test } from "vitest"
import { PruneNullishValues, pruneNullishValues } from "./prune-nullish-values"
import type { PruneNullishValues } from "./prune-nullish-values"
import { pruneNullishValues } from "./prune-nullish-values"
test("pruneNullishValues", () => {
type InputType = {
@@ -14,6 +15,7 @@ test("pruneNullishValues", () => {
const input: InputType = {
a: "a",
// eslint-disable-next-line unicorn/no-null
b: null,
c: undefined,
d: {

View File

@@ -1,4 +1,3 @@
/* eslint-disable import/no-unused-modules */
export type MaybePromise<T> = T | Promise<T>
export type ValueOf<Type> = Type extends ReadonlyArray<infer Value>

View File

@@ -1,4 +1,4 @@
import { setTimeout } from "timers/promises"
import { setTimeout } from "node:timers/promises"
const maxTime = 1000

View File

@@ -78,7 +78,7 @@
"type-fest": "^2.12.2",
"typescript": "^4.6.3",
"vite": "^2.9.5",
"vitest": "^0.9.4"
"vitest": "^0.10.0"
},
"resolutions": {
"esbuild": "latest"