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
`Children should be ${ts.SyntaxKind[ts.SyntaxKind.PropertySignature]} or ${ts.SyntaxKind[ts.SyntaxKind.PropertyDeclaration]} but is ${ts.SyntaxKind[child.getKind()]} instead`
354
+
)
355
+
constjsDocs=child.getJsDocs()
356
+
if(jsDocs.length>0){
357
+
exception.description=jsDocs[0].getDescription()
358
+
}
359
+
if(child.getName()==='statusCodes'){
360
+
constvalue=child.getTypeNode()
361
+
assert(value,Node.isTupleTypeNode(value),'statusCodes should be an array.')
362
+
for(constcodeofvalue.getElements()){
363
+
assert(code,Node.isLiteralTypeNode(code)&&Number.isInteger(Number(code.getText())),'Status code values should a valid integer')
364
+
assert(code,STATUS_CODES[code.getText()]!=null,`${code.getText()} is not a valid status code`)
0 commit comments