@hygiene/core
Version:
Keep your TODOs and FIXMEs healthy
29 lines (23 loc) • 410 B
text/typescript
export type AnnotatedComment<Annotation> = {
annotation: Annotation;
/**
* ex. 'TODO', 'FIXME'
*/
kind: string;
/**
* ex. xxx/yyy/zzz.js
*/
file: string;
/**
* A line number of comment in file
*/
line: number;
/**
* The body of annotated comment
*/
text: string;
/**
* @see https://babeljs.io/docs/en/next/babel-code-frame.html
*/
codeFrame: string;
};