Issue with `Schema.BigInt` and `Schema.BigIntFromString` Compilation

there's Schema.NumberFromString but no Schema.BigIntFromString.
Schema.BigInt says:
This schema transforms a string into a bigint by parsing the string using the BigInt function.
so it looks like it's already doing the *FromString part.
However, the following code fails to compile:

export const ModelId = Schema.BigInt.pipe(Schema.brand("ModelId"));
export type ModelId = typeof ModelId.Type;
export const ModelIdFromString = Schema.BigInt.pipe(
  Schema.compose(ModelId),
);

whereas if I change ModelIdFromString to use Schema.NumberFromString, it compiles fine (but yields the wrong type)
Was this page helpful?