UNPKG

morbo-cli

Version:

… All tech debt is vermin in the eyes of Morbo!

26 lines (25 loc) 895 B
import { Definitions } from './defaultDefinitions'; /** * Takes a line of a file and the line number, and returns an array of all of * the messages found in that line. Can return multiple messages per line, for * example, if a message was annotated with more than one type. EG: FIXME TODO * * Each message in the array will have a label, a lineNumber, a colorer, and a * message. Will also include an author property if one is found on the * message. * * @param {String} lineString The * @param {Number} lineNumber * * @return {Array} */ declare type Message = { author: string | null; message: string | null; label: string | null; lineNumber: number; fileName: string; description?: string | null; }; export default function getMessagesFromLine(definitions: Definitions, lineString: string, lineNumber: number, fileName: string): Message[]; export {};