diff --git a/src/Result/Result.ts b/src/Result/Result.ts index 7c576ac..c103e80 100644 --- a/src/Result/Result.ts +++ b/src/Result/Result.ts @@ -3,11 +3,11 @@ import { Option } from '../Option' export declare type Ok = { readonly TAG: 0 readonly _0: T -} & { __: 'Ok' } +} export declare type Error = { readonly TAG: 1 readonly _0: T -} & { __: 'Error' } +} export declare type Result = Ok | Error diff --git a/src/Result/index.ts b/src/Result/index.ts index df0206d..4ab667a 100644 --- a/src/Result/index.ts +++ b/src/Result/index.ts @@ -2,11 +2,11 @@ import { Option } from '../Option' export declare type Ok = { readonly TAG: 0 readonly _0: T -} & { __: 'Ok' } +} export declare type Error = { readonly TAG: 1 readonly _0: T -} & { __: 'Error' } +} export declare type Result = Ok | Error