@graphty/graphty-element / config / getDefaults
Function: getDefaults()
getDefaults<
S>(optionsSchema):InferOptions<S>
Defined in: src/config/OptionsSchema.ts:167
Get default values from an options schema
Extracts the default value from each Zod schema definition.
Type Parameters
S
S extends OptionsSchema
Parameters
optionsSchema
S
Options schema to extract defaults from
Returns
InferOptions<S>
Object with all default values