Skip to content

@graphty/graphty-element / extend / OptionShorthand

Type Alias: OptionShorthand ​

OptionShorthand = number | string | boolean | Readonly<Partial<Omit<OptionDescriptor, "name" | "type" | "on">>> & object

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

One option in short form. A bare number, string or boolean is an option of that type with that default. An object is an OptionDescriptor without name (the key is the name) and with plainName optional (derived from the key: "tierAttribute" reads "Tier attribute").