Creating a Schema for Type `0x${string}`

Is it possible to create a schema for the type 0x${string}? I already have a regex to assert this with Schema.pattern, but the type with that approach is still string & Brand<...>, wheras i need it to be 0x${string} & Brand<...> to avoid needing to do as casting with libraries
Was this page helpful?