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

@hdsydsvenskan/utils

Package Overview
Dependencies
Maintainers
11
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hdsydsvenskan/utils - npm Package Compare versions

Comparing version 4.20.0 to 4.20.1

7

lib/advanced-types.d.ts

@@ -30,6 +30,7 @@ import { Primitive } from 'type-fest';

type MaybePromised<T> = T|Promise<T>;
type NonFunction<T> = T extends Function ? never : T;
export type ResolveValueParam<T, P extends any[]> = ((...params: P) => MaybePromised<T>)|MaybePromised<T>;
export type ResolveValueRawParam<T, P extends any[]> = ((...params: P) => T)|T;
export type ResolveValueWithThisParam<T, C, P extends any[]> = ((this: C, ...params: P) => MaybePromised<T>)|MaybePromised<T>;
export type ResolveValueParam<T, P extends any[] = []> = ((...params: P) => MaybePromised<T>)|Promise<T>|NonFunction<T>;
export type ResolveValueRawParam<T, P extends any[] = []> = ((...params: P) => T)|NonFunction<T>;
export type ResolveValueWithThisParam<T, C, P extends any[] = []> = ((this: C, ...params: P) => MaybePromised<T>)|Promise<T>|NonFunction<T>;

@@ -36,0 +37,0 @@ declare function resolveValue<T, P extends any[]> (value: ResolveValueParam<T, P>, ...valueArgs: P): Promise<T>;

@@ -18,5 +18,5 @@ export type CacheStore = import("./types").BasicCacheStore & import("./types").CacheStoreExtras;

export type MaybePromised<T> = T | Promise<T>;
export type ResolveValueParam<T, P extends any[]> = T | Promise<T> | ((...params: P) => import("./advanced-types").MaybePromised<T>);
export type ResolveValueRawParam<T, P extends any[]> = T | ((...params: P) => T);
export type ResolveValueWithThisParam<T, C, P extends any[]> = T | Promise<T> | ((this: C, ...params: P) => import("./advanced-types").MaybePromised<T>);
export type ResolveValueParam<T, P extends any[]> = Promise<T> | import("./advanced-types").NonFunction<T> | ((...params: P) => import("./advanced-types").MaybePromised<T>);
export type ResolveValueRawParam<T, P extends any[]> = import("./advanced-types").NonFunction<T> | ((...params: P) => T);
export type ResolveValueWithThisParam<T, C, P extends any[]> = Promise<T> | import("./advanced-types").NonFunction<T> | ((this: C, ...params: P) => import("./advanced-types").MaybePromised<T>);
export type EnsureArray<X> = import("../lib-ts/array").UnpackArray<X>[];

@@ -23,0 +23,0 @@ export type UnpackArray<X> = X extends (infer U)[] ? U : X;

{
"name": "@hdsydsvenskan/utils",
"version": "4.20.0",
"version": "4.20.1",
"license": "UNLICENSED",

@@ -5,0 +5,0 @@ "description": "Misc utility methods that's useful for our sites",

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