A file type to associate with the renderer.

interface IFileType {
    displayName?: string;
    extensions: readonly string[];
    fileFormat?: null | string;
    icon?: IRenderMime.LabIcon.IResolvable;
    iconClass?: string;
    iconLabel?: string;
    mimeTypes: readonly string[];
    name: string;
    pattern?: string;
}

Hierarchy

  • IFileType

    Properties

    displayName?: string

    An optional display name for the file type.

    extensions: readonly string[]

    The extensions of the file type (e.g. ".txt"). Can be a compound extension (e.g. ".table.json).

    fileFormat?: null | string

    The file format for the file type ('text', 'base64', or 'json').

    The icon for the file type. Can either be a string containing the name of an existing icon, or an object with {name, svgstr} fields, where svgstr is a string containing the raw contents of an svg file.

    iconClass?: string

    The icon class name for the file type.

    iconLabel?: string

    The icon label for the file type.

    mimeTypes: readonly string[]

    The mime types associated the file type.

    name: string

    The name of the file type.

    pattern?: string

    An optional pattern for a file name (e.g. ^Dockerfile$).