@daren/utils
Advanced tools
Comparing version 1.3.3 to 1.4.0
@@ -5,1 +5,2 @@ import { Dict } from './types'; | ||
export declare const __DEV__: boolean; | ||
//# sourceMappingURL=assertion.d.ts.map |
import { Dispatch, SetStateAction } from 'react'; | ||
export declare function useControllableState<T>(propValue: T | undefined, initialValue: T | (() => T), changeHandler?: Dispatch<SetStateAction<T | undefined>>): [T, (value: T) => void]; | ||
//# sourceMappingURL=hooks.d.ts.map |
@@ -9,1 +9,2 @@ import cx from 'clsx'; | ||
export { cx }; | ||
//# sourceMappingURL=index.d.ts.map |
import * as React from 'react'; | ||
export declare const isBrowser: boolean; | ||
export declare const useSafeEffect: typeof React.useLayoutEffect; | ||
//# sourceMappingURL=misc.d.ts.map |
@@ -7,1 +7,2 @@ import type { Dict } from './types'; | ||
}): Partial<T1>; | ||
//# sourceMappingURL=object.d.ts.map |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
export declare type Dict<T = any> = Record<string, T>; | ||
@@ -14,1 +15,3 @@ export declare type CSSMap = Dict<{ | ||
}; | ||
export declare type ExtractProps<T> = T extends React.ComponentType<infer P> ? P : T; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -6,1 +6,2 @@ export declare type WalkObjectPredicate<Leaf = unknown> = (value: unknown, path: string[]) => Leaf; | ||
export declare function walkObject<Target, LeafType>(target: Target, predicate: WalkObjectPredicate<LeafType>): MappedLeavesObject<Target, ReturnType<WalkObjectPredicate<LeafType>>>; | ||
//# sourceMappingURL=walk-object.d.ts.map |
{ | ||
"name": "@daren/utils", | ||
"version": "1.3.3", | ||
"version": "1.4.0", | ||
"repository": { | ||
@@ -50,3 +50,3 @@ "type": "git", | ||
}, | ||
"gitHead": "3250f95f2650b1603e16b0834fef0beb8663e64b" | ||
"gitHead": "fd7bb1e50b84fa0603ad03d73ac6dcfeec970c97" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
34328
44
306