Struggling with Redacted<string> Type Annotation in Effect Typescript

Hi All,

Hopefully not too silly but stuck on the following:
val secret: Redacted<string>
const useRedacted(val: Redacted<string>) => ....


I am strugling to use Redacted<string> as the type annotation of value.

I have tried Schema.Redacted(typeof Schema.String), Schema.Redacted<string> and can not figure this out!
Was this page helpful?