Effect CommunityEC
Effect Community2y ago
40 replies
TheStockBroker

Creating a Schema for Similar Representation

I need to have a schema that represents something similar to this:
type Target = `${string}` | `${string}.${Target}`

This type of recursion is ofc impossible. But but I can't find an elegant way to express a string that is definitively dot separated. ${string}. is invalid
Was this page helpful?