Skip to content

@graphty/graphty-element / extend / ShorthandValue

Type Alias: ShorthandValue<S> ​

ShorthandValue<S> = S extends number ? number : S extends boolean ? boolean : S extends string ? string : S extends object ? number : S extends object ? boolean : S extends object ? NodeId : S extends object ? readonly NodeId[] : S extends object ? V : string

Defined in: graphty-element/src/simple/types.ts:46

The value type one short-form option resolves to: 60 gives number, "name" string.

Type Parameters ​

S ​

S