@jsdocs-io/extractor
Version:
Analyze and extract the API from npm packages
18 lines (15 loc) • 406 B
text/typescript
const optimizedFilePatterns: Record<string, string> = {
typescript: 'lib/typescript.d.ts',
};
export function getOptimizedFilePattern({
name,
ignoreFilePatternOptimizations = false,
}: {
name: string;
ignoreFilePatternOptimizations?: boolean;
}): string | undefined {
if (ignoreFilePatternOptimizations) {
return undefined;
}
return optimizedFilePatterns[name];
}