@base-stone/hooks 0.7.7 → 0.7.8

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.
@@ -113,7 +113,7 @@ declare interface TableResponse<T> {
113
113
  * @param suffixes 模态框后缀数组
114
114
  * @returns 包含所有模态框实例的对象,以及统一的 toggle/open/close 函数
115
115
  */
116
- export declare function useCreateModal<T extends readonly string[] = readonly string[]>(suffixes: T): Record<`${T[number]}Modal`, ModalInstance> & {
116
+ export declare function useCreateModal<const T extends readonly string[] = readonly string[]>(suffixes: T): Record<`${T[number]}Modal`, ModalInstance> & {
117
117
  toggle: (type: string, data?: any) => void;
118
118
  open: (type: string, data?: any) => void;
119
119
  close: (type: string) => void;
@@ -123,6 +123,6 @@ export declare function useFormSubmit(requestFn: RequestFn, successFn: SuccessFn
123
123
 
124
124
  export declare function useSelectOptions<K extends string = string, T extends string | number = string | number>(getRequestFn: (params: Record<string, any>) => Promise<any>, selectConfig: SelectConfig<K>): SelectOptionsResult<K, T>;
125
125
 
126
- export declare function useTableList<T>(getRequestFn: (data: QueryParamsData) => Promise<TableResponse<T>>, initParams?: Record<string, any>): TableListResult<T>;
126
+ export declare function useTableList<T extends Record<string, any> = Record<string, any>>(getRequestFn: (data: QueryParamsData) => Promise<TableResponse<T>>, initParams?: Record<string, any>): TableListResult<T>;
127
127
 
128
128
  export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@base-stone/hooks",
3
3
  "license": "MIT",
4
- "version": "0.7.7",
4
+ "version": "0.7.8",
5
5
  "author": {
6
6
  "name": "yeliang",
7
7
  "email": "leafront@126.com"