@fastkit/helpers
Advanced tools
Comparing version 0.14.3 to 0.14.4
@@ -261,2 +261,12 @@ import { RecursiveArray, WritableKeysOf } from '@fastkit/ts-type-utils'; | ||
declare function mixin<T extends object, U extends object>(base: T, trait: U): Mixin<T, U>; | ||
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; | ||
type Mixins<T extends object, R> = R extends Array<infer U> ? Mixins<T, UnionToIntersection<U>> : R extends object ? Mixin<T, R> : never; | ||
/** | ||
* Obtain a Proxy instance mixed with multiple objects as mixins. | ||
* | ||
* @param base - Base object | ||
* @param traits - trait objects | ||
* @returns Mixed-in Proxy | ||
*/ | ||
declare function mixins<T extends object, R extends object[]>(base: T, ...traits: R): Mixins<T, R>; | ||
@@ -411,2 +421,2 @@ /** | ||
export { DATE_INPUT_PARSE_RE, DATE_INPUT_PRECISIONS, type DateInputPrecision, type DateSource, type DefaultsScheme, type DefaultsSchemeSource, type FunctionableValue, IN_DOCUMENT, IN_WINDOW, MERGE_DEFAULTS_INDEX_SIGNATURE_SYMBOL, type Mixin, type NormalizeFuncType, type ParseDateInputResult, arrayRemove, arrayUnique, capitalize, copyBuffer, createIndexSignatureDefaultsScheme, delay, escapeRegExp, flattenRecursiveArray, inNonNullable, isArrayBufferView, isBuffer, isEmpty, isIterableObject, isMap, isNonNullObject, isObject, isObjectEqual, isPlainObject, isPromise, isSet, isString, mapFromObjectArray, mergeDefaults, minIndent, mixin, nilToEmptyString, notEmptyValue, objectFromArray, objectIncludes, omitProperties, parseDateInput, pickProperties, range, removeSpace, removeUndef, resolveFunctionableValue, safeGetTimeByDateSource, stripIndent, toDate, toFloat, toHalfWidth, toInt, toNumber, toSingleSpace, uncapitalize }; | ||
export { DATE_INPUT_PARSE_RE, DATE_INPUT_PRECISIONS, type DateInputPrecision, type DateSource, type DefaultsScheme, type DefaultsSchemeSource, type FunctionableValue, IN_DOCUMENT, IN_WINDOW, MERGE_DEFAULTS_INDEX_SIGNATURE_SYMBOL, type Mixin, type Mixins, type NormalizeFuncType, type ParseDateInputResult, arrayRemove, arrayUnique, capitalize, copyBuffer, createIndexSignatureDefaultsScheme, delay, escapeRegExp, flattenRecursiveArray, inNonNullable, isArrayBufferView, isBuffer, isEmpty, isIterableObject, isMap, isNonNullObject, isObject, isObjectEqual, isPlainObject, isPromise, isSet, isString, mapFromObjectArray, mergeDefaults, minIndent, mixin, mixins, nilToEmptyString, notEmptyValue, objectFromArray, objectIncludes, omitProperties, parseDateInput, pickProperties, range, removeSpace, removeUndef, resolveFunctionableValue, safeGetTimeByDateSource, stripIndent, toDate, toFloat, toHalfWidth, toInt, toNumber, toSingleSpace, uncapitalize }; |
{ | ||
"name": "@fastkit/helpers", | ||
"version": "0.14.3", | ||
"version": "0.14.4", | ||
"description": "A small collection of helper implementations for processing primitive values and objects.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
71649
864