@dhmk/utils
Advanced tools
Comparing version 2.3.1 to 2.4.0
import { ValueOrFunction } from "./types"; | ||
declare type PropType<T, Path extends string[]> = Path extends [infer K] ? K extends keyof T ? T[K] : unknown : Path extends [infer K, ...infer R] ? K extends keyof T ? R extends string[] ? PropType<T[K], R> : unknown : unknown : unknown; | ||
export declare type PropType<T, Path extends string[]> = Path extends [infer K] ? K extends keyof T ? T[K] : unknown : Path extends [infer K, ...infer R] ? K extends keyof T ? R extends string[] ? PropType<T[K], R> : unknown : unknown : unknown; | ||
export declare const getIn: <T, P extends string[]>(x: T, path: [...P]) => PropType<T, P>; | ||
export declare const setIn: <T, P extends string[]>(x: T, path: [...P], v: ValueOrFunction<PropType<T, P>>) => T; | ||
export {}; |
import { ValueOrFunction } from "./types"; | ||
declare type PropType<T, Path extends string[]> = Path extends [infer K] ? K extends keyof T ? T[K] : unknown : Path extends [infer K, ...infer R] ? K extends keyof T ? R extends string[] ? PropType<T[K], R> : unknown : unknown : unknown; | ||
export declare type PropType<T, Path extends string[]> = Path extends [infer K] ? K extends keyof T ? T[K] : unknown : Path extends [infer K, ...infer R] ? K extends keyof T ? R extends string[] ? PropType<T[K], R> : unknown : unknown : unknown; | ||
export declare const getIn: <T, P extends string[]>(x: T, path: [...P]) => PropType<T, P>; | ||
export declare const setIn: <T, P extends string[]>(x: T, path: [...P], v: ValueOrFunction<PropType<T, P>>) => T; | ||
export {}; |
{ | ||
"name": "@dhmk/utils", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"description": "A collection of frequently used functions and primitives", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104490
2408