CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
create.d.ts39 linesDownload Raw Back to util
1/**2 * @param {Definition} definition3 *   Definition.4 * @returns {Schema}5 *   Schema.6 */7export function create(definition: Definition): Schema;8/**9 * Definition of a schema.10 */11export type Definition = {12    /**13     * Normalzed names to special attribute case.14     */15    attributes?: Record<string, string> | undefined;16    /**17     * Normalized names that must be set as properties.18     */19    mustUseProperty?: ReadonlyArray<string> | undefined;20    /**21     *   Property names to their types.22     */23    properties: Record<string, number | null>;24    /**25     * Space.26     */27    space?: Space | undefined;28    /**29     *   Transform a property name.30     */31    transform: Transform;32};33/**34 * Transform.35 */36export type Transform = (attributes: Record<string, string>, property: string) => string;37import { Schema } from './schema.js';38import type { Space } from 'property-information';39//# sourceMappingURL=create.d.ts.map