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
* update
* check arg type
* remove max len limit on arg type
* type
* generic argument can look better
* space
* run prettier
* run prettier
* prettier: semi false
* code review
* run lint
* run lint
* run ts-standard
* fix
constCustomTypedArgError3=createError<string,number,[string,string]>('OTHER_CODE','expect %s message but got %s',400)
36
+
expectError(CustomTypedArgError3('a'))
37
+
CustomTypedArgError3('a','b')
38
+
newCustomTypedArgError3('a','b')
39
+
expectError(CustomTypedArgError3(1))
40
+
expectError(newCustomTypedArgError3(1))
41
+
expectError(newCustomTypedArgError3(1,2))
42
+
expectError(newCustomTypedArgError3('1',2))
43
+
expectError(newCustomTypedArgError3(1,'2'))
44
+
45
+
constCustomTypedArgError4=createError<string,number,[string,string]>('OTHER_CODE','expect %s message but got %s',400)
46
+
expectError(CustomTypedArgError4('a'))
47
+
CustomTypedArgError4('a','b')
48
+
newCustomTypedArgError4('a','b')
49
+
expectError(CustomTypedArgError4(1))
50
+
expectError(newCustomTypedArgError4(1))
51
+
expectError(newCustomTypedArgError4(1,2))
52
+
expectError(newCustomTypedArgError4('1',2))
53
+
expectError(newCustomTypedArgError4(1,'2'))
54
+
55
+
constCustomTypedArgError5=createError<[string,string,string,string]>('OTHER_CODE','expect %s message but got %s. Please contact %s by emailing to %s',400)
constCustomTypedArgError6=createError<string,number,[string,string,string,string]>('OTHER_CODE','expect %s message but got %s. Please contact %s by emailing to %s',400)
0 commit comments