bids-validator icon indicating copy to clipboard operation
bids-validator copied to clipboard

Fixes to allow Deno check to pass and build to succeed.

Open rwblair opened this issue 1 year ago • 1 comments

Add further type checks to catching errors that are thrown issues (then immediately ts-ignore the issues.add). I think to remove the @ts-expect-error on the issue.adds we'd need to have issues be a class, instantiate instances in the throw statement then we could leverage instanceof in the catch statements.

I tried to put the type guard into a function to reduce how often all those && were being repeated but TS wasn't having any of it. Not sure what I was doing wrong. Similarly TS didn't like hasOwn so had to use in operator.

Update Deno.run to Deno.Command, run removed in deno2.

Removes stub file validators/isBidsy.ts.

rwblair avatar Oct 14 '24 20:10 rwblair