aboutsummaryrefslogtreecommitdiff
path: root/scripts/apidocs/processing/method.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/apidocs/processing/method.ts')
-rw-r--r--scripts/apidocs/processing/method.ts10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/apidocs/processing/method.ts b/scripts/apidocs/processing/method.ts
index b9d1aa38..ce978ad8 100644
--- a/scripts/apidocs/processing/method.ts
+++ b/scripts/apidocs/processing/method.ts
@@ -11,7 +11,6 @@ import {
type MethodDeclaration,
} from 'ts-morph';
import { groupBy } from '../../../src/internal/group-by';
-import { valuesForKeys } from '../utils/value-checks';
import { newProcessingError } from './error';
import type {
RawApiDocsSignature,
@@ -138,12 +137,11 @@ function getAllFunctions(
);
}
-export function processProjectFunctions(
- project: Project,
- ...names: string[]
-): RawApiDocsMethod[] {
+export function processUtilityFunctions(project: Project): RawApiDocsMethod[] {
return processMethodLikes(
- valuesForKeys(getAllFunctions(project), names),
+ Object.values(getAllFunctions(project)).filter((fn) =>
+ fn.getSourceFile().getFilePath().includes('/src/utils/')
+ ),
(f) => f.getNameOrThrow()
);
}