Class NodeShape<Name, Labels, Data, Props, Relations>

Type Parameters

Hierarchy

  • NodeShape

Constructors

Properties

Constructors

  • 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>

  • 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>

  • 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

labels: Labels
name: Name
props: Props
rels: Relations

Generated using TypeDoc