Interface DBInitializer

Initialize the entries of the database, and define the structure of the database.

Yes, this can be replaced with a simple array; we just want to mark kinda structure (

interface DBInitializer {
    data: (() => unknown);
    sub?: DBInitializer;
}

Properties

Properties

data: (() => unknown)

Type declaration

    • (): unknown
    • Returns the default value for an entry

      Returns unknown

Recursively define the initializer of the subdatabases

Generated using TypeDoc