New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 4.1.1 to 4.1.2

2

esm/lens.d.ts
import { ValueOrFunction } from "./types";
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 type PropType<T, Path extends string[]> = Path extends [infer K] ? K extends keyof T ? T[K] : T extends ReadonlyArray<any> ? K extends `${number}` ? T[number] : unknown : unknown : Path extends [infer K, ...infer R] ? R extends string[] ? K extends keyof T ? PropType<T[K], R> : T extends ReadonlyArray<any> ? K extends `${number}` ? PropType<T[number], R> : unknown : 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;
import { ValueOrFunction } from "./types";
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 type PropType<T, Path extends string[]> = Path extends [infer K] ? K extends keyof T ? T[K] : T extends ReadonlyArray<any> ? K extends `${number}` ? T[number] : unknown : unknown : Path extends [infer K, ...infer R] ? R extends string[] ? K extends keyof T ? PropType<T[K], R> : T extends ReadonlyArray<any> ? K extends `${number}` ? PropType<T[number], R> : unknown : 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;
{
"name": "@dhmk/utils",
"version": "4.1.1",
"version": "4.1.2",
"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