Skip to content

Commit 4e5469c

Browse files
committed
style(resolveConfig): update tsdoc
1 parent aab1647 commit 4e5469c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/mongodb-memory-server-core/src/util/resolveConfig.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function setDefaultValue(key: ResolveConfigVariables, value: string): voi
4343

4444
let packageJsonConfig: Record<string, string> = {};
4545
/**
46-
* Find the nearest package.json for the provided directory
46+
* Find the nearest package.json (that has an non-empty config field) for the provided directory
4747
* @param directory Set an custom directory to search the config in (default: process.cwd())
4848
*/
4949
export function findPackageJson(directory?: string): Record<string, string> {
@@ -82,8 +82,8 @@ export function findPackageJson(directory?: string): Record<string, string> {
8282
findPackageJson();
8383

8484
/**
85-
* Resolve "variableName" with a prefix of "ENV_CONFIG_PREFIX"
86-
* @param variableName The variable to use
85+
* Resolve "variableName" value (process.env | packagejson | default | undefined)
86+
* @param variableName The variable to search an value for
8787
*/
8888
export function resolveConfig(variableName: ResolveConfigVariables): string | undefined {
8989
return (

0 commit comments

Comments
 (0)