json-react-layouts-data-loader
Advanced tools
Comparing version 4.0.0-beta.1 to 4.0.0-beta.2
# json-react-layouts-data-loader | ||
## 4.0.0-beta.2 | ||
### Patch Changes | ||
- 1207d38: Simplified types further | ||
- Updated dependencies [1207d38] | ||
- json-react-layouts@3.0.0-beta.2 | ||
## 4.0.0-beta.1 | ||
@@ -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 */ | ||
@@ -22,5 +22,5 @@ useRuntimeParams?: (dataDefinitionArgs: DataLoadArguments, services: Services) => AdditionalParams; | ||
export interface LoadArguments<Services extends object> { | ||
dataDefinition: DataDefinition<any, any, Services>; | ||
dataDefinition: DataDefinition<any, any, Services, any>; | ||
dataDefinitionArgs: any; | ||
layout: LayoutApi<any, any, any, any, Services>; | ||
} |
import { LayoutApi } from 'json-react-layouts'; | ||
import { DataDefinition } from './DataLoading'; | ||
export declare function getComponentDataArgs<Services extends {}>(layout: LayoutApi<any, any, any, any, Services>, componentType: string): DataDefinition<any, any, Services> | undefined; | ||
export declare function getComponentDataArgs<Services extends {}>(layout: LayoutApi<any, any, any, any, Services>, componentType: string): DataDefinition<any, any, Services, any> | undefined; |
@@ -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 */ | ||
@@ -22,5 +22,5 @@ useRuntimeParams?: (dataDefinitionArgs: DataLoadArguments, services: Services) => AdditionalParams; | ||
export interface LoadArguments<Services extends object> { | ||
dataDefinition: DataDefinition<any, any, Services>; | ||
dataDefinition: DataDefinition<any, any, Services, any>; | ||
dataDefinitionArgs: any; | ||
layout: LayoutApi<any, any, any, any, Services>; | ||
} |
import { LayoutApi } from 'json-react-layouts'; | ||
import { DataDefinition } from './DataLoading'; | ||
export declare function getComponentDataArgs<Services extends {}>(layout: LayoutApi<any, any, any, any, Services>, componentType: string): DataDefinition<any, any, Services> | undefined; | ||
export declare function getComponentDataArgs<Services extends {}>(layout: LayoutApi<any, any, any, any, Services>, componentType: string): DataDefinition<any, any, Services, any> | undefined; |
{ | ||
"name": "json-react-layouts-data-loader", | ||
"version": "4.0.0-beta.1", | ||
"version": "4.0.0-beta.2", | ||
"repository": "github:sevenwestmedia-labs/json-react-layouts", | ||
@@ -11,3 +11,3 @@ "author": "Seven West Media WA", | ||
"dependencies": { | ||
"json-react-layouts": "^3.0.0-beta.1" | ||
"json-react-layouts": "^3.0.0-beta.2" | ||
}, | ||
@@ -14,0 +14,0 @@ "peerDependencies": { |
@@ -13,3 +13,3 @@ import { LayoutApi } from 'json-react-layouts' | ||
Services extends {}, | ||
AdditionalParams extends {} = {} | ||
AdditionalParams extends {} | ||
> { | ||
@@ -30,5 +30,5 @@ /** Custom React Hook to provide additional dynamic parameters to the data loader */ | ||
export interface LoadArguments<Services extends object> { | ||
dataDefinition: DataDefinition<any, any, Services> | ||
dataDefinition: DataDefinition<any, any, Services, any> | ||
dataDefinitionArgs: any | ||
layout: LayoutApi<any, any, any, any, Services> | ||
} |
@@ -7,3 +7,3 @@ import { LayoutApi } from 'json-react-layouts' | ||
componentType: string, | ||
): DataDefinition<any, any, Services> | undefined { | ||
): DataDefinition<any, any, Services, any> | undefined { | ||
const componentDataDefinition = layout.componentRegistrations.get(componentType) | ||
@@ -10,0 +10,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
370737