Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dhmk/utils

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dhmk/utils - npm Package Compare versions

Comparing version 2.3.1 to 2.4.0

3

esm/lens.d.ts
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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc