const schemaToArchetype: (
schema: ArchetypeSchema,
attributes: Record<string,
| number | number[] | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | VectorEmitter | VectorRefEmitter | undefined>,
flags?: Record<string, any>,
refs?: Record<string, any>,
sources?: Record<string, any>,
) => number
Calculate archetype ID for a schema and its attributes, flags, refs and extra sources
packages / core / src / archetype.ts