Providers for defaults. Only called, when given properties are unset. Providers may access the full original configuration object (for example, to derive properties from other properties), despite the given property, as this is unset when being called.

interface MutablePropertiesDefaultProviders<T> {
    blob?: BlobTypeConfig | ((input) => BlobTypeConfig);
    editing?: boolean | ((input) => boolean);
    name?: string | ((input) => string);
    readable?: boolean | ((input) => boolean);
}

Type Parameters

Properties

blob?: BlobTypeConfig | ((input) => BlobTypeConfig)

Provider for blob property value (or just provided as static value).

Type declaration

editing?: boolean | ((input) => boolean)

Provider for default editing state (or just provided as static value).

Type declaration

    • (input): boolean
    • Parameters

      • input: Omit<T, "editing">

      Returns boolean

name?: string | ((input) => string)

Provider for default name (or just providing a static name).

Type declaration

    • (input): string
    • Parameters

      • input: Omit<T, "name">

      Returns string

readable?: boolean | ((input) => boolean)

Provider for default readable state (or just provided as static value).

Type declaration

    • (input): boolean
    • Parameters

      • input: Omit<T, "readable">

      Returns boolean