@dev-build-deploy/comment-it
Version:
Source File Comment Management Library
8 lines (7 loc) • 376 B
TypeScript
import { Comment, ExtractorOptions } from "./types";
/**
* Extracts all comments from the provided file and yields them as an async generator
* @param filePath The path to the file to extract comments from
* @returns An async generator that yields comments
*/
export declare function extractComments(filePath: string, options?: ExtractorOptions): AsyncGenerator<Comment>;