@solid-primitives/utils
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -57,2 +57,14 @@ import { Accessor, Setter, onCleanup } from 'solid-js'; | ||
}; | ||
/** Unwraps the type definition of an object, making it more readable */ | ||
declare type Simplify<T> = T extends object ? { | ||
[K in keyof T]: T[K]; | ||
} : T; | ||
/** Unboxes type definition, making it more readable */ | ||
declare type UnboxLazy<T> = T extends () => infer U ? U : T; | ||
/** Get the required keys of an object */ | ||
declare type RequiredKeys<T> = keyof { | ||
[K in keyof T as T extends { | ||
[_ in K]: unknown; | ||
} ? K : never]: 0; | ||
}; | ||
/** `A | B => A & B` */ | ||
@@ -244,2 +256,2 @@ declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; | ||
export { AccessReturnTypes, AnyClass, AnyFunction, AnyObject, AnyStatic, DeepPartialAny, Definite, Directive, ExtractIfPossible, Falsy, FalsyValue, ItemsOf, ItemsOfMany, Many, MaybeAccessor, MaybeAccessorValue, Modify, ModifyDeep, NonIterable, Noop, OnAccessEffectFunction, Position, PrimitiveValue, SetterValue, StaticStoreSetter, Trigger, TriggerCache, Truthy, UnionToIntersection, Values, access, accessArray, accessWith, asAccessor, asArray, chain, clamp, compare, createCallbackStack, createMicrotask, createProxy, createStaticStore, createTrigger, createTriggerCache, entries, forEachEntry, isClient, isDev, isObject, isProd, keys, noop, ofClass, onRootCleanup, promiseTimeout, raceTimeout, warn, withAccess }; | ||
export { AccessReturnTypes, AnyClass, AnyFunction, AnyObject, AnyStatic, DeepPartialAny, Definite, Directive, ExtractIfPossible, Falsy, FalsyValue, ItemsOf, ItemsOfMany, Many, MaybeAccessor, MaybeAccessorValue, Modify, ModifyDeep, NonIterable, Noop, OnAccessEffectFunction, Position, PrimitiveValue, RequiredKeys, SetterValue, Simplify, StaticStoreSetter, Trigger, TriggerCache, Truthy, UnboxLazy, UnionToIntersection, Values, access, accessArray, accessWith, asAccessor, asArray, chain, clamp, compare, createCallbackStack, createMicrotask, createProxy, createStaticStore, createTrigger, createTriggerCache, entries, forEachEntry, isClient, isDev, isObject, isProd, keys, noop, ofClass, onRootCleanup, promiseTimeout, raceTimeout, warn, withAccess }; |
{ | ||
"name": "@solid-primitives/utils", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "A bunch of reactive utility types and functions, for building primitives with Solid.js", | ||
@@ -47,2 +47,2 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>", | ||
} | ||
} | ||
} |
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
26928
674