@graphty/graphty-element / extend / defineOptionsSchema
Function: defineOptionsSchema() ​
defineOptionsSchema<
S>(schema):S
Defined in: graphty-element/src/algorithms/types/OptionSchema.ts:244
Creates a type-safe options schema definition
This is a helper function that provides better type inference when defining option schemas.
Type Parameters ​
S ​
S extends OptionsSchema
Parameters ​
schema ​
S
The schema definition
Returns ​
S
The same schema with proper typing