2021年3月4日星期四

Can I test a string with regex using io-ts in Typescript

const a = "test-string";  const regex = new RegExp(/^t*/);    regex.test(a);    

Is there a regex.test(a) counterpart in io-ts which will check for error during runtime?

https://stackoverflow.com/questions/66486183/can-i-test-a-string-with-regex-using-io-ts-in-typescript March 05, 2021 at 11:05AM

没有评论:

发表评论