diff options
Diffstat (limited to 'cli/js/io.ts')
-rw-r--r-- | cli/js/io.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/js/io.ts b/cli/js/io.ts index 1a7bf8c4c..15a4ad09b 100644 --- a/cli/js/io.ts +++ b/cli/js/io.ts @@ -3,11 +3,8 @@ // Documentation liberally lifted from them too. // Thank you! We love Go! -// TODO(kt3k): EOF should be `unique symbol` type. -// That might require some changes of ts_library_builder. -// See #2591 for more details. -export const EOF = null; -export type EOF = null; +export const EOF: unique symbol = Symbol("EOF"); +export type EOF = typeof EOF; // Seek whence values. // https://golang.org/pkg/io/#pkg-constants |