typedoc-plugin-internal-external
Version:
Force a File or Reflection (symbol) to be @internal or @external
11 lines (7 loc) • 304 B
text/typescript
import { memoize } from 'lodash';
import { satisfies } from 'semver';
const typedocVersion = require('typedoc/package.json').version;
function checkTypedocVersion(semverString: string) {
return satisfies(typedocVersion, semverString);
}
export const isTypedocVersion = memoize(checkTypedocVersion);