Skip to content

@usine/config/file

A failure pinned to one authored file and one parse stage, so the UI can quarantine that file alone.

  • Schema.Class

new ConfigFileError(…args): ConfigFileError

Parameter Type
…args [props: object, options?: MakeOptions]

ConfigFileError

readonly expression: Option<string & Brand<"ExpressionSource">>

readonly file: string & Brand<"InstancePath">

readonly message: string

readonly stage: "expression" | "frontmatter" | "read" | "reference" | "schema" | "yaml"


The registry or settings could not be loaded, which blocks the whole instance.

  • Schema.Class

new FactoryConfigError(…args): FactoryConfigError

Parameter Type
…args [props: object, options?: MakeOptions]

FactoryConfigError

readonly file: string & Brand<"InstancePath">

readonly message: string

readonly stage: "expression" | "frontmatter" | "read" | "reference" | "schema" | "yaml"

ConfigError = typeof ConfigError.Type


FileStage = typeof FileStage.Type


InstancePath = typeof InstancePath.Type

Path of one authored file, relative to the instance folder.

const ConfigError: Schema.Union<readonly [typeof ConfigFileError, typeof FactoryConfigError]>


const FileStage: Schema.Literals<readonly ["expression", "frontmatter", "read", "reference", "schema", "yaml"]>


const InstancePath: Schema.brand<Schema.NonEmptyString, "InstancePath">

Path of one authored file, relative to the instance folder.