Skip to content

Commit 27c714b

Browse files
authored
🤖 Merge PR DefinitelyTyped#72175 omelette: add optional initFile parameter to cleanupShellInitFile by @mmkal
1 parent 3b5b896 commit 27c714b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎types/omelette/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare namespace omelette {
1010
}
1111

1212
interface Instance {
13-
cleanupShellInitFile(): void;
13+
cleanupShellInitFile(initFile?: string): void;
1414

1515
init(): void;
1616
next(fn: () => void): void;

‎types/omelette/omelette-tests.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ if (~process.argv.indexOf("--setup")) {
6464
// Similarly, if you want to tear down autocompletion, use `omeletteInstance.cleanupShellInitFile()`
6565
if (~process.argv.indexOf("--cleanup")) {
6666
completion.cleanupShellInitFile();
67+
68+
completion.cleanupShellInitFile("~/custom/.bashrc");
6769
}
6870

6971
// Rest is yours

0 commit comments

Comments
 (0)