@normalized-db/normalizer
Version:
Normalize and restore `JavaScript` objects based on a simple schema.
4 lines (3 loc) • 378 B
TypeScript
import { type AbstractSchemaStructure, type SchemaConfig, type SchemaStructure } from '../types/normalizer-config-types';
import type { Schema } from '../types/normalizer-types';
export declare function buildSchema<DataTypes extends SchemaStructure, AbstractDataTypes extends AbstractSchemaStructure = {}>(config: SchemaConfig<DataTypes, AbstractDataTypes>): Schema<DataTypes>;