PageSummaryReader #
从源码里读出页面的摘要,并在源码变化之前一直缓存。
字段 #
read(source: string, file: string): PageSummary
读出 source 的摘要。file 只用作缓存的键,所以内容不变的文件在开发时的多次请求之间保持同一份摘要。
完整类型签名
TypeScript
interface PageSummaryReader {
read: (source: string, file: string) => PageSummary
}

评论