Apply automatic changes

This commit is contained in:
itsMapleLeaf
2023-09-27 17:23:41 +00:00
committed by github-actions[bot]
parent ffe0a86a33
commit e2c3de4fae
8 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
import { LooseOmit, LoosePick, typeEquals } from "./types.ts"
import { type LooseOmit, type LoosePick, typeEquals } from "./types.ts"
typeEquals<LoosePick<{ a: 1; b: 2 }, "a">, { a: 1 }>(true)
typeEquals<LooseOmit<{ a: 1; b: 2 }, "a">, { b: 2 }>(true)

View File

@@ -2,7 +2,7 @@ import { raise } from "./raise.ts"
export type MaybePromise<T> = T | PromiseLike<T>
export type ValueOf<Type> = Type extends readonly (infer Value)[]
export type ValueOf<Type> = Type extends ReadonlyArray<infer Value>
? Value
: Type[keyof Type]

View File

@@ -1,5 +1,5 @@
import { setTimeout } from "node:timers/promises"
import { MaybePromise } from "./types.ts"
import type { MaybePromise } from "./types.ts"
const maxTime = 1000