UNPKG

@altostra/core

Version:

Core library for shared types and logic

4 lines (3 loc) 213 B
import type { Predicate } from "../General"; import type { Result } from "../Result"; export declare function findInRecord<K extends keyof any, T>(pred: Predicate<[T, K]>, rs: Record<K, T>): Result<[K, T], void>;