The type of the id assigned to each node. Branded to avoid problematic usages with other string or numeric types.
The default ids are numeric, but we use a branded type to avoid confusion with other numeric types.
Custom ids or scoped ids can be strings, but they will be normalized to numbers if they are numeric strings.
Type declaration
ReadonlybuiltInPrefix: "built-in:"
The prefix used for built-in function or operator ids.
Normalizes a node id by converting numeric strings to numbers.
This allows us to use numeric ids without storing them as strings, while still allowing custom string ids if needed.
The type of the id assigned to each node. Branded to avoid problematic usages with other string or numeric types. The default ids are numeric, but we use a branded type to avoid confusion with other numeric types. Custom ids or scoped ids can be strings, but they will be normalized to numbers if they are numeric strings.