json-react-layouts-data-loader
Advanced tools
Comparing version 4.0.0-beta.3 to 4.0.0-beta.4
# json-react-layouts-data-loader | ||
## 4.0.0-beta.4 | ||
### Patch Changes | ||
- Restore default generic param for DataDefinition type | ||
- Updated dependencies [undefined] | ||
- json-react-layouts@3.0.0-beta.4 | ||
## 4.0.0-beta.3 | ||
@@ -4,0 +12,0 @@ |
@@ -6,3 +6,3 @@ import { LayoutApi } from 'json-react-layouts'; | ||
}) => Promise<TData>; | ||
export interface DataDefinition<DataLoadArguments extends {}, TData, Services extends {}, AdditionalParams extends {}> { | ||
export interface DataDefinition<DataLoadArguments extends {}, TData, Services extends {}, AdditionalParams extends {} = {}> { | ||
/** Custom React Hook to provide additional dynamic parameters to the data loader */ | ||
@@ -9,0 +9,0 @@ useRuntimeParams?: (dataDefinitionArgs: DataLoadArguments, services: Services) => AdditionalParams; |
@@ -6,3 +6,3 @@ import { LayoutApi } from 'json-react-layouts'; | ||
}) => Promise<TData>; | ||
export interface DataDefinition<DataLoadArguments extends {}, TData, Services extends {}, AdditionalParams extends {}> { | ||
export interface DataDefinition<DataLoadArguments extends {}, TData, Services extends {}, AdditionalParams extends {} = {}> { | ||
/** Custom React Hook to provide additional dynamic parameters to the data loader */ | ||
@@ -9,0 +9,0 @@ useRuntimeParams?: (dataDefinitionArgs: DataLoadArguments, services: Services) => AdditionalParams; |
{ | ||
"name": "json-react-layouts-data-loader", | ||
"version": "4.0.0-beta.3", | ||
"version": "4.0.0-beta.4", | ||
"repository": "github:sevenwestmedia-labs/json-react-layouts", | ||
@@ -11,3 +11,3 @@ "author": "Seven West Media WA", | ||
"dependencies": { | ||
"json-react-layouts": "^3.0.0-beta.3" | ||
"json-react-layouts": "^3.0.0-beta.4" | ||
}, | ||
@@ -14,0 +14,0 @@ "peerDependencies": { |
@@ -13,3 +13,3 @@ import { LayoutApi } from 'json-react-layouts' | ||
Services extends {}, | ||
AdditionalParams extends {} | ||
AdditionalParams extends {} = {} | ||
> { | ||
@@ -16,0 +16,0 @@ /** Custom React Hook to provide additional dynamic parameters to the data loader */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
371103