Effect CommunityEC
Effect Community•3y ago•
5 replies
staubfuss

Error when using S.parse with string and date conversion in effect-ts

Hey folks, I in the middle of learning effect-ts, first of all, I really love it, even thou a lot of concepts are still not clear to me 😅 but I have a question, why the following is throwing an error?
const s = pipe(S.string, S.dateFromString)
S.parse(s)(`${Date.now()}`) // ? 
Was this page helpful?