Interface LoadFileOptions

LoadFileOptions are used to defines different optional parameters that can be used to configure the compiler.

interface LoadFileOptions {
    includePaths?: string[];
    libraryPaths?: Record<string, string>;
    quiet?: boolean;
    style?: string;
}

Properties

includePaths?: string[]

Sets the include paths used for looking up .slint imports to the specified vector of paths.

libraryPaths?: Record<string, string>

Sets library paths used for looking up @library imports to the specified map of library names to paths.

quiet?: boolean

If set to true warnings from the compiler will not be printed to the console.

style?: string

Sets the widget style the compiler is currently using when compiling .slint files.