sort-object-keys2
Advanced tools
Comparing version
@@ -1,7 +0,9 @@ | ||
export declare function sortObject<T extends Record<any, any>>(object: T, options?: Omit<IOptions<T>, 'useSource'> & { | ||
useSource: true; | ||
}): T; | ||
export declare function sortObject<T extends Record<any, any>>(object: T, sortFn: IOptions<T>["sort"]): T; | ||
export declare namespace sortObject { | ||
var sortObjectKeys: typeof sortObject; | ||
} | ||
export declare function sortObject<T extends Record<any, any>>(object: T, keyOrders: IOptions<T>["keys"]): T; | ||
export declare namespace sortObject { | ||
var sortObjectKeys: typeof sortObject; | ||
} | ||
export declare function sortObject<T extends Record<any, any>>(object: T, options?: Omit<IOptions<T>, 'keys' | 'onlyKeys'> & { | ||
@@ -14,14 +16,12 @@ keys: IOptions<T>["keys"]; | ||
} | ||
export declare function sortObject<T extends Record<any, any>>(object: T, options?: IOptions<T>): Partial<T>; | ||
export declare function sortObject<T extends Record<any, any>>(object: T, options?: Omit<IOptions<T>, 'useSource'> & { | ||
useSource: true; | ||
}): T; | ||
export declare namespace sortObject { | ||
var sortObjectKeys: typeof sortObject; | ||
} | ||
export declare function sortObject<T extends Record<any, any>>(object: T, sortFn: IOptions<T>["sort"]): T; | ||
export declare function sortObject<T extends Record<any, any>>(object: T, options?: IOptions<T>): T; | ||
export declare namespace sortObject { | ||
var sortObjectKeys: typeof sortObject; | ||
} | ||
export declare function sortObject<T extends Record<any, any>>(object: T, keyOrders: IOptions<T>["keys"]): T; | ||
export declare namespace sortObject { | ||
var sortObjectKeys: typeof sortObject; | ||
} | ||
export interface IOptions<T extends Record<any, any> = Record<any, any>, K extends string = Extract<keyof T, string>> { | ||
@@ -28,0 +28,0 @@ /** |
{ | ||
"name": "sort-object-keys2", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Sort an object's keys, including an optional key list", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
11554
-0.16%