Skip to content

Commit

Permalink
redeprecate Severity
Browse files Browse the repository at this point in the history
  • Loading branch information
lobsterkatie committed Apr 13, 2022
1 parent 588252a commit 4b0d4d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/types/src/severity.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* TODO(v7): Remove this enum and replace with SeverityLevel
* @deprecated Please use a `SeverityLevel` string instead of the `Severity` enum. Acceptable values are 'fatal',
* 'critical', 'error', 'warning', 'log', 'info', and 'debug'.
*/
export enum Severity {
/** JSDoc */
Expand Down
3 changes: 3 additions & 0 deletions packages/utils/src/severity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export const validSeverityLevels = ['fatal', 'error', 'warning', 'log', 'info',
/**
* Converts a string-based level into a member of the {@link Severity} enum.
*
* @deprecated Please use a `SeverityLevel` string instead of the `Severity` enum. Acceptable values are 'fatal',
* 'critical', 'error', 'warning', 'log', 'info', and 'debug'.
*
* @param level String representation of Severity
* @returns Severity
*/
Expand Down

0 comments on commit 4b0d4d6

Please sign in to comment.