ts-adt icon indicating copy to clipboard operation
ts-adt copied to clipboard

How ts-adt match an option array?

Open damoco opened this issue 4 years ago • 1 comments

How ts-adt match an option array? I found a lib for this: https://dev.to/gvergnaud/bringing-pattern-matching-to-typescript-introducing-ts-pattern-v3-0-o1k?signin=true

Don't know if it is the best way so far...

damoco avatar Jun 03 '21 04:06 damoco

I'm not sure I understand the question... Are you asking how to use match with a value of type Option<Array<X>>?

pfgray avatar Jun 27 '21 02:06 pfgray