Effect CommunityEC
Effect Community2y ago
6 replies
Nanniiii

Trouble with TypeScript Schema Annotation for Required String

Hi i'm trying to use
export const RequiredString = Schema.NonEmptyTrimmedString.annotations({
    message: () => "REQUIRED",
})

Schema.decodeSync(RequiredString)(null)


but for some reason the annotation is not doing anything and i always receive "Expected string, actual null"
Was this page helpful?