Skip to content

Commit

Permalink
2023-09-11T09:59:01.848Z
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpocock committed Sep 11, 2023
1 parent d118081 commit a9d6dd1
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
enum LogLevel {
DEBUG = "DEBUG",
WARN = "WARN",
ERROR = "ERROR",
}

enum LogLevel2 {
DEBUG = "DEBUG",
WARN = "WARN",
ERROR = "ERROR",
}

function printImportant(key: LogLevel) {}

printImportant(LogLevel2.DEBUG);
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
enum LogLevel {
DEBUG = "DEBUG",
WARN = "WARN",
ERROR = "ERROR",
}

enum LogLevel2 {
DEBUG = "DEBUG",
WARN = "WARN",
ERROR = "ERROR",
}

function printImportant(key: LogLevel | LogLevel2) {}

printImportant(LogLevel2.DEBUG);
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
enum LogLevel {
DEBUG = "DEBUG",
WARN = "WARN",
ERROR = "ERROR",
}

enum LogLevel2 {
DEBUG = "DEBUG",
WARN = "WARN",
ERROR = "ERROR",
}

function printImportant(key: "DEBUG" | "WARN" | "ERROR") {}

printImportant(LogLevel2.DEBUG);
Empty file.

0 comments on commit a9d6dd1

Please sign in to comment.