Module: interfaces/Component
Interfaces
- BoundComponentProps
- BoundFunctionalComponentFactory
- BoundSetComponentFactory
- ClassComponent
- LinkedComponentInputProps
- LinkedComponentProps
- LinkedFunctionalComponent
- LinkedFunctionalSetComponent
- LinkedSetComponentInputProps
- LinkedSetComponentProps
Type Aliases
BoundComponentFactory
Ƭ BoundComponentFactory<P, ShapeType>: BoundFunctionalComponentFactory<P, ShapeType> | BoundSetComponentFactory<P, ShapeType>
Type parameters
| Name | Type | 
|---|---|
| P | {} | 
| ShapeType | extends Shape=Shape | 
Defined in
lincd/src/interfaces/Component.ts:171
Component
Ƭ Component<P, ShapeType>: ClassComponent<P, ShapeType> | LinkedFunctionalComponent<P, ShapeType> | LinkedFunctionalSetComponent<P, ShapeType>
Type parameters
| Name | Type | 
|---|---|
| P | any | 
| ShapeType | extends Shape=Shape | 
Defined in
lincd/src/interfaces/Component.ts:8
LinkableFunctionalComponent
Ƭ LinkableFunctionalComponent<P, ShapeType>: React.FC<P & LinkedComponentProps<ShapeType>>
Type parameters
| Name | Type | 
|---|---|
| P | P | 
| ShapeType | extends Shape=Shape | 
Defined in
lincd/src/interfaces/Component.ts:53
LinkableFunctionalSetComponent
Ƭ LinkableFunctionalSetComponent<P, ShapeType>: React.FC<P & LinkedSetComponentProps<ShapeType>>
Type parameters
| Name | Type | 
|---|---|
| P | P | 
| ShapeType | extends Shape=Shape | 
Defined in
lincd/src/interfaces/Component.ts:54
LinkedDataChildRequestFn
Ƭ LinkedDataChildRequestFn<T>: LinkedFunctionalComponent<T> | LinkedDataRequestFn<T>
Type parameters
| Name | 
|---|
| T | 
Defined in
lincd/src/interfaces/Component.ts:180
LinkedDataDeclaration
Ƭ LinkedDataDeclaration<T>: Object
Type parameters
| Name | 
|---|
| T | 
Type declaration
| Name | Type | 
|---|---|
| request | LinkedDataRequestFn<T> | 
| shape | typeof Shape | 
Defined in
lincd/src/interfaces/Component.ts:176
LinkedDataRequest
Ƭ LinkedDataRequest: (PropertyShape | [PropertyShape, SubRequest])[]
An array of requested property shapes. If you want to request specific property shapes of another property shape (this is called a SubRequest) then replace a property shape with an array that contains the main property shape as the first element, and an array of property shapes as subRequest of that main property shape e.g.: [shape1,[shape2,[shape3,shape4]]] will request shape 3 & 4 of shape 2
Defined in
lincd/src/interfaces/Component.ts:196
LinkedDataRequestFn
Ƭ LinkedDataRequestFn<T>: (shapeOrShapeSet: T) => LinkedDataResponse
Type parameters
| Name | 
|---|
| T | 
Type declaration
▸ (shapeOrShapeSet): LinkedDataResponse
Parameters
| Name | Type | 
|---|---|
| shapeOrShapeSet | T | 
Returns
Defined in
lincd/src/interfaces/Component.ts:181
LinkedDataResponse
Ƭ LinkedDataResponse: () => BoundComponentFactory<any, any> | (ResponseUnit | () => BoundComponentFactory<any, any> | ResponseUnit)[] | { [key: string]: ResponseUnit | () => BoundComponentFactory<any, any> | ResponseUnit;  }
Defined in
lincd/src/interfaces/Component.ts:173
LinkedDataSetDeclaration
Ƭ LinkedDataSetDeclaration<T>: Object
Type parameters
| Name | Type | 
|---|---|
| T | extends Shape | 
Type declaration
| Name | Type | 
|---|---|
| request? | LinkedDataRequestFn<T> | 
| setRequest? | LinkedDataRequestFn<ShapeSet<T>> | 
| shape | typeof Shape | 
Defined in
lincd/src/interfaces/Component.ts:183
ResponseUnit
Ƭ ResponseUnit: Node | Shape | string | number | ICoreIterable<Node | Shape | string | number>
Defined in
lincd/src/interfaces/Component.ts:172
SubRequest
Ƭ SubRequest: LinkedDataRequest
Defined in
lincd/src/interfaces/Component.ts:189
TransformedLinkedDataResponse
Ƭ TransformedLinkedDataResponse: BoundComponentFactory<any, any> | (ResponseUnit | BoundComponentFactory<any, any> | ResponseUnit)[] | { [key: string]: ResponseUnit | BoundComponentFactory<any, any> | ResponseUnit;  }