Issue.d.ts 469 B

123456789101112131415
  1. import { IssueSeverity } from './IssueSeverity';
  2. import { IssueOrigin } from './IssueOrigin';
  3. interface Issue {
  4. origin: IssueOrigin;
  5. severity: IssueSeverity;
  6. code: string;
  7. message: string;
  8. file?: string;
  9. line?: number;
  10. character?: number;
  11. stack?: string;
  12. }
  13. declare function isIssue(value: unknown): value is Issue;
  14. declare function deduplicateAndSortIssues(issues: Issue[]): Issue[];
  15. export { Issue, isIssue, deduplicateAndSortIssues };