ckeditor5-elements / ElementSchemaInput
Type Alias: ElementSchemaInput
ts
type ElementSchemaInput = Record<string, { [Key in keyof ElementSchemaElement]: Key extends "type" ? string : ElementSchemaElement[Key] extends string[] | undefined ? readonly string[] | undefined : ElementSchemaElement[Key] }>;What the elementSchema option accepts: an ElementSchemaDefinition, or a JSON file imported as it is, whose strings TypeScript does not know are the allowed ones, and whose arrays are not known to be mutable. Either way, it is validated when the editor is created.