Effect CommunityEC
Effect Community2y ago
36 replies
danielo515

Using Branded Schema as Function

Hey, I just saw that having this branded schema:
export const ID = S.String.pipe(S.brand("PhotoId"));

Also allows me to call it likea function:
ID('my-real-good-id')

This is very convenient, but is it intended?
Was this page helpful?