import { Node } from '@tsd/typescript' ; import { Diagnostic } from '../interfaces' ; param node param message param severity export default ( node , message , severity = 'error' ) : Diagnostic => { const position = node . getSourceFile ( ) . getLineAndCharacterOfPosition ( node . getStart ( ) ) ; return { fileName : node . getSourceFile ( ) . fileName , message , severity , line : position . line + 1 , column : position . character } ; } ;