(file: string)
| 98 | * @since 4.0.0 |
| 99 | */ |
| 100 | export const extractFile = (file: string): Promise<ReadonlyArray<Snippet>> => |
| 101 | readFile(file, "utf8").then((source) => |
| 102 | extract(source, file.endsWith(".md") || file.endsWith(".mdx") ? "markdown" : "jsdoc") |
| 103 | ) |