types: define enum LogLevel as const
Created by: ToshB
The LogLevel
enum defined in index.d.ts
declares an enum that is not exported from dash.js, so any references to LogLevel
will pass compilation but fail runtime.
By declaring this enum as const enum
the value is inlined during compilation, removing any references to LogLevel in the compiled JavaScript.
See https://basarat.gitbooks.io/typescript/content/docs/enums.html#const-enums for more info.