Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
s.members.forEach(m => {
if (m.kind === NodeKind.FIELDDECLARATION) {
const name = m.name.text
const type = m.type.name.text
const typeArgs = m.type.typeArguments.map(t => t.name.text)
fields.push([m.name.text, type, ...typeArgs])
}
})