qidian-shared 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- export declare function buildTree<T extends Record<string, unknown>>(data: T[], options?: {
1
+ export declare function buildTree<T extends object>(data: T[], options?: {
2
2
  id?: keyof T;
3
3
  parentId?: keyof T;
4
4
  children?: keyof T;
@@ -1 +1,3 @@
1
1
  export declare function initialConversion(str: string, isLowerCase?: boolean): string;
2
+ export declare function camelize(str: string): string;
3
+ export declare function kebabCase(str: string, separator?: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qidian-shared",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "QiDian 共享工具函数和钩子",
5
5
  "type": "module",
6
6
  "author": "qidian",