Class RelationShape<Many, To, Labels, Props>
Type Parameters
-
Many extends boolean = boolean
-
To extends string = string
-
Labels extends readonly string[] = readonly string[]
-
Props extends Record<string, PropValue> = Record<string, PropValue>
Constructors
constructor
- new RelationShape<Many, To, Labels, Props>(many: Many, to: To, labels?: Labels): RelationShape<Many, To, Labels, Props>
-
Type Parameters
-
Many extends boolean = boolean
-
To extends string = string
-
Labels extends readonly string[] = readonly string[]
-
Props extends Record<string, PropValue> = Record<string, PropValue>
Parameters
-
many: Many
-
to: To
-
Optional
labels: Labels
Returns RelationShape<Many, To, Labels, Props>
- new RelationShape<Many, To, Labels, Props>(many: Many, to: To, data?: Props): RelationShape<Many, To, Labels, Props>
-
Type Parameters
-
Many extends boolean = boolean
-
To extends string = string
-
Labels extends readonly string[] = readonly string[]
-
Props extends Record<string, PropValue> = Record<string, PropValue>
Parameters
-
many: Many
-
to: To
-
Optional
data: Props
Returns RelationShape<Many, To, Labels, Props>
- new RelationShape<Many, To, Labels, Props>(many: Many, to: To, labels?: Labels, data?: Props): RelationShape<Many, To, Labels, Props>
-
Type Parameters
-
Many extends boolean = boolean
-
To extends string = string
-
Labels extends readonly string[] = readonly string[]
-
Props extends Record<string, PropValue> = Record<string, PropValue>
Parameters
-
many: Many
-
to: To
-
Optional
labels: Labels
-
Optional
data: Props
Returns RelationShape<Many, To, Labels, Props>
Properties
Readonly
labels
labels: Labels
Readonly
props
props: Props