-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Global variable to store the unmount function from react-ink. | ||
* | ||
* @global | ||
* @type {string | undefined} | ||
*/ | ||
declare global { | ||
var unmount: | ||
| ((error?: number | Error | null | undefined) => void) | ||
| undefined; | ||
} | ||
|
||
/** | ||
* Export an empty object to ensure proper module augmentation in TypeScript. | ||
* | ||
* @remarks | ||
* This export statement is needed to allow merging declarations with the global scope. | ||
* Without it, TypeScript will not recognize the global variable declarations. | ||
* | ||
* @example | ||
* ```typescript | ||
* // Use an empty export to allow merging with global declarations | ||
* export {}; | ||
* ``` | ||
*/ | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters