useDatabaseType = (database) => {
  if (!database.type) {
    throw new Error('Database type does not contain required field \'type\'.')
  }

  databaseTypes[database.type] = database
}
Add a new database type.
@example
import { useDatabaseType } from 'orbitdb'
const CustomDBTypeModule = async (params) => {
  const database = await Database(...params)
  ...
}
useDatabaseType(CustomDBTypeModule)
@function useDatabaseType
@param {module:Databases} database A Database-compatible module.
@throws Database type does not contain required field \'type\'.
@throws Database type '${store.type}' already added.
@memberof module:Databases