Class NodeShape<Name, Labels, Data, Props, Relations>
Type Parameters
-
Name extends string = string
-
Labels extends readonly string[] = readonly string[]
-
-
Props = { [ K in keyof Data as Data[K] extends PropValue ? K : never]: Data[K] extends PropValue ? Data[K] : never }
-
Relations = { [ K in keyof Data as Data[K] extends RelationShape ? K : never]: Data[K] extends RelationShape ? Data[K] : never }
Constructors
constructor
- new NodeShape<Name, Labels, Data, Props, Relations>(name: Name, labels?: Labels): NodeShape<Name, Labels, Data, Props, Relations>
-
Type Parameters
-
Name extends string = string
-
Labels extends readonly string[] = readonly string[]
-
Data extends Record<string, PropValue | RelationShape<boolean, string, readonly string[], Record<string, PropValue>>> = Record<string, PropValue | RelationShape<boolean, string, readonly string[], Record<string, PropValue>>>
-
Props = { [ K in string | number | symbol as Data[K] extends PropValue ? K : never]: Data[K] extends PropValue ? any[any] : never }
-
Relations = { [ K in string | number | symbol as Data[K] extends RelationShape<boolean, string, readonly string[], Record<string, PropValue>> ? K : never]: Data[K] extends RelationShape<boolean, string, readonly string[], Record<string, PropValue>> ? any[any] : never }
Parameters
-
name: Name
-
Optional
labels: Labels
Returns NodeShape<Name, Labels, Data, Props, Relations>
- new NodeShape<Name, Labels, Data, Props, Relations>(name: Name, data?: Data): NodeShape<Name, Labels, Data, Props, Relations>
-
Type Parameters
-
Name extends string = string
-
Labels extends readonly string[] = readonly string[]
-
Data extends Record<string, PropValue | RelationShape<boolean, string, readonly string[], Record<string, PropValue>>> = Record<string, PropValue | RelationShape<boolean, string, readonly string[], Record<string, PropValue>>>
-
Props = { [ K in string | number | symbol as Data[K] extends PropValue ? K : never]: Data[K] extends PropValue ? any[any] : never }
-
Relations = { [ K in string | number | symbol as Data[K] extends RelationShape<boolean, string, readonly string[], Record<string, PropValue>> ? K : never]: Data[K] extends RelationShape<boolean, string, readonly string[], Record<string, PropValue>> ? any[any] : never }
Parameters
-
name: Name
-
Optional
data: Data
Returns NodeShape<Name, Labels, Data, Props, Relations>
- new NodeShape<Name, Labels, Data, Props, Relations>(name: Name, labels?: Labels, data?: Data): NodeShape<Name, Labels, Data, Props, Relations>
-
Type Parameters
-
Name extends string = string
-
Labels extends readonly string[] = readonly string[]
-
Data extends Record<string, PropValue | RelationShape<boolean, string, readonly string[], Record<string, PropValue>>> = Record<string, PropValue | RelationShape<boolean, string, readonly string[], Record<string, PropValue>>>
-
Props = { [ K in string | number | symbol as Data[K] extends PropValue ? K : never]: Data[K] extends PropValue ? any[any] : never }
-
Relations = { [ K in string | number | symbol as Data[K] extends RelationShape<boolean, string, readonly string[], Record<string, PropValue>> ? K : never]: Data[K] extends RelationShape<boolean, string, readonly string[], Record<string, PropValue>> ? any[any] : never }
Parameters
-
name: Name
-
Optional
labels: Labels
-
Optional
data: Data
Returns NodeShape<Name, Labels, Data, Props, Relations>
Properties
Readonly
labels
labels: Labels
Readonly
props
props: Props
Readonly
rels
rels: Relations