Skip to content

Commit

Permalink
fix(typescript): do not use const enums (#10585)
Browse files Browse the repository at this point in the history
Fixes #10579
  • Loading branch information
SimonSchick authored and eseliger committed Mar 22, 2019
1 parent d566c25 commit db16cd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/lib/transaction.d.ts
Expand Up @@ -59,14 +59,14 @@ export namespace Transaction {
* });
* ```
*/
const enum ISOLATION_LEVELS {
enum ISOLATION_LEVELS {
READ_UNCOMMITTED = 'READ UNCOMMITTED',
READ_COMMITTED = 'READ COMMITTED',
REPEATABLE_READ = 'REPEATABLE READ',
SERIALIZABLE = 'SERIALIZABLE',
}

const enum TYPES {
enum TYPES {
DEFERRED = 'DEFERRED',
IMMEDIATE = 'IMMEDIATE',
EXCLUSIVE = 'EXCLUSIVE',
Expand Down Expand Up @@ -107,7 +107,7 @@ export namespace Transaction {
* ```
* UserModel will be locked but TaskModel won't!
*/
const enum LOCK {
enum LOCK {
UPDATE = 'UPDATE',
SHARE = 'SHARE',
/**
Expand Down

0 comments on commit db16cd5

Please sign in to comment.