Skip to content

Commit ff8ad54

Browse files
committed
jsDocs
1 parent 8f839ff commit ff8ad54

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/ui/compare/printAutoFix.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ export interface AutoFixResult {
66
addedExample: string[];
77
}
88

9+
/**
10+
* Prints the result of the auto-fix operation.
11+
* @param changed - Whether any changes were made.
12+
* @param result - The result of the auto-fix operation.
13+
* @param envName - The name of the environment file.
14+
* @param exampleName - The name of the example file.
15+
* @param json - Whether to output in JSON format.
16+
* @returns void
17+
*/
918
export function printAutoFix(
1019
changed: boolean,
1120
result: AutoFixResult,

src/ui/shared/printGitignore.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ type GitignoreWarningOptions = {
66
log?: (msg: string) => void;
77
};
88

9+
/**
10+
* Logs a warning about .env not being ignored by Git.
11+
* @param options - Options for the gitignore warning.
12+
* @returns void
13+
*/
914
export function printGitignoreWarning(options: GitignoreWarningOptions): void {
1015
const { envFile, reason, log = console.log } = options;
1116

0 commit comments

Comments
 (0)