You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* NOTE: for these classes to keep the same code we need to tell TS with `"useDefineForClassFields": true` in the `tsconfig.json`
3
-
*/
4
-
5
-
// TODO: document helpers if kept. The helpers could also be moved to the generated code to reduce bundle size. After all, user is unlikely to write these manually
6
-
7
-
/**
8
-
* Error throw when a matcher miss
2
+
* Error throw when a matcher matches by regex but validation fails.
9
3
*/
10
4
exportclassMatchMissextendsError{
11
5
name='MatchMiss'
12
6
}
13
7
14
-
// NOTE: not sure about having a helper. Using `new MatchMiss(description?)` is good enough
15
-
exportconstmiss=()=>newMatchMiss()
16
-
// TODO: which one?, the return type of never makes types work anyway
0 commit comments