diff --git a/src/index.ts b/src/index.ts index f0db2a5..4e350c2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,15 +8,15 @@ export enum Kinds { } export class Initialized { - public kind: typeof Kinds.Initialized = Kinds.Initialized; + readonly kind = Kinds.Initialized; } export class Pending { - public kind: typeof Kinds.Pending = Kinds.Pending; + readonly kind = Kinds.Pending; } export class Failure { - public kind: typeof Kinds.Failure = Kinds.Failure; + readonly kind = Kinds.Failure; constructor(public error: E) { if (error === null || error === undefined) { @@ -26,7 +26,7 @@ export class Failure { } export class Success { - public kind: typeof Kinds.Success = Kinds.Success; + readonly kind = Kinds.Success; constructor(public data: D) { if (data === null || data === undefined) {