-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(common): add doc strings for common package
- Loading branch information
Showing
3 changed files
with
13 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ module.exports = { | |
'benchmarks', | ||
'cli', | ||
'styler', | ||
'common', | ||
], | ||
], | ||
}, | ||
|
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 |
---|---|---|
@@ -1,4 +1,15 @@ | ||
/** | ||
* A simple type to allow for easy use of the `ogma` library on front and backend | ||
* abstracted away from the NodeJS `WritableStream`, though inspiration was drawn from it | ||
*/ | ||
export interface OgmaStream { | ||
/** | ||
* The method for actually writing the log. This is made to be as open ended as possible for great extensibility. | ||
*/ | ||
write: (message: unknown) => unknown; | ||
/** | ||
* A utility method to determine if color can be used. This should usually return a 1, 4, 8, or 24. | ||
* @see https://nodejs.org/dist/latest-v14.x/docs/api/tty.html#tty_writestream_getcolordepth_env | ||
*/ | ||
getColorDepth?: () => number; | ||
} |
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