Extends IFormatDefinition with conversion capabilities:
export interface FileFormat extends IFormatDefinition { /** Whether conversion **from** this format is supported. */ from: boolean; /** Whether conversion **to** this format is supported. */ to: boolean; /** Format identifier for the handler's internal reference. */ internal: string; /** (Optional) Whether the format is lossless in this context. Defaults to `false`. */ lossless?: boolean;}
Format identifier for the handler’s internal reference.Used to identify the format within the handler’s conversion logic. This can be different from the format field for disambiguation.
export interface IFormatDefinition { /** Format description (long name) for displaying to the user. */ name: string; /** Short, "formal" name for displaying to the user, and for * differentiating between files of identical MIME types. * If your file is different from others of the same MIME type, * then this string should be used to differentiate it. */ format: string; /** File extension. */ extension: string; /** MIME type. */ mime: string; /** Category for grouping formats. */ category?: Array<string> | string;}
Short, “formal” name for displaying to the user, and for differentiating between files of identical MIME types.If your file is different from others of the same MIME type, this string should be used to differentiate it.Example: "schematic", "mp4", "litematic"
Category for grouping formats.Can be a single category or an array of categories. Used by the pathfinding algorithm to apply category change costs.Common categories: "image", "video", "audio", "text", "document", "data"