Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / DataMatch

Type Alias: DataMatch<T> โ€‹

DataMatch<T> = T extends readonly infer U[] ? DataMatch<U>[] : T extends NbtNum ? T : T extends object ? { [K in keyof T]?: DataMatch<T[K]> } : T

Defined in: core/values/item-data.ts:13

A partial match on T: any of its fields, and a list matches when it holds these elements.

Type Parameters โ€‹

T โ€‹

T

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.