interface IResult < A , E > { and < B > ( result : Result < B , E > ) : Result < B , E > ; ap < B > ( f : Result < ( ( a : A ) => B ) , E > ) : Result < B , E > ; assertErr ( ) : asserts this is Err < E > ; assertOk ( ) : asserts this is Ok < A > ; bichain < B , F > ( ok : ( ( okValue : A ) => Result < B , F > ) ,
err : ( ( errValue : E ) => Result < B , F > ) ) : Result < B , F > ; bimap < B , F > ( ok : ( ( okValue : A ) => B ) ,
err : ( ( errValue : E ) => F ) ) : Result < B , F > ; chain < B > ( f : ( ( value : A ) => Result < B , E > ) ) : Result < B , E > ; chainErr < F > ( f : ( ( value : E ) => Result < A , F > ) ) : Result < A , F > ; err ( ) : Option < E > ; getOr ( defaultValue : A ) : A ; getOrElse ( f : ( ( ) => A ) ) : A ; ifErr ( onErr : ( ( value : E ) => void ) ) : void ; ifOk ( onOk : ( ( value : A ) => void ) ) : void ; isAborted ( ) : this is Err < DOMException > ; isErr ( ) : this is Err < E > ; isOk ( ) : this is Ok < A > ; map < B > ( f : ( ( value : A ) => B ) ) : Result < B , E > ; mapErr < F > ( f : ( ( value : E ) => F ) ) : Result < A , F > ; match < B > ( onOk : ( ( value : A ) => B ) ,
onErr : ( ( value : E ) => B ) ) : B ; ok ( ) : Option < A > ; or < F > ( result : Result < A , F > ) : Result < A , F > ; toJSON ( ) : { result : boolean ; value : A | E ; } ; unwrap ( ) : undefined | A ; unwrapErr ( ) : undefined | E ; unwrapExact ( ) : A ; } Defined in result.d.ts:57 Methodsand and < B > ( result ) : Result < B , E > Defined in result.d.ts:143 ap ap < B > ( f ) : Result < B , E > Defined in result.d.ts:138 assert Err assert Err ( ) : asserts this is Err < E > Returns asserts this is Err < E > Defined in result.d.ts:77 assert Ok assert Ok ( ) : asserts this is Ok < A > Returns asserts this is Ok < A > Defined in result.d.ts:71 bichain bichain < B , F > ( ok , err ) : Result < B , F > Defined in result.d.ts:111 bimap bimap < B , F > ( ok , err ) : Result < B , F > Parameters ok : ( ( okValue : A ) => B ) err : ( ( errValue : E ) => F ) Defined in result.d.ts:125 chain chain < B > ( f ) : Result < B , E > Defined in result.d.ts:99 chain Err chain Err < F > ( f ) : Result < A , F > Defined in result.d.ts:105 err err ( ) : Option < E > Defined in result.d.ts:177 get Or get Or ( defaultValue ) : A Returns A Defined in result.d.ts:152 get Or Else get Or Else ( f ) : A Returns A Defined in result.d.ts:156 if Err if Err ( onErr ) : void Parameters onErr : ( ( value : E ) => void ) ( value ) : void Returns void Returns void Defined in result.d.ts:90 if Ok if Ok ( onOk ) : void Parameters onOk : ( ( value : A ) => void ) ( value ) : void Returns void Returns void Defined in result.d.ts:86 is Err is Err ( ) : this is Err < E > Returns this is Err < E > Defined in result.d.ts:65 is Ok is Ok ( ) : this is Ok < A > Returns this is Ok < A > Defined in result.d.ts:61 map map < B > ( f ) : Result < B , E > Defined in result.d.ts:115 map Err map Err < F > ( f ) : Result < A , F > Defined in result.d.ts:119 match match < B > ( onOk , onErr ) : B Parameters onOk : ( ( value : A ) => B ) onErr : ( ( value : E ) => B ) Returns B Defined in result.d.ts:82 ok ok ( ) : Option < A > Defined in result.d.ts:173 or or < F > ( result ) : Result < A , F > Defined in result.d.ts:148 toJSON toJSON ( ) : { result : boolean ; value : A | E ; } Returns { result : boolean ; value : A | E ; } result : boolean value : A | E Defined in result.d.ts:187 unwrap unwrap ( ) : undefined | A Returns undefined | A Defined in result.d.ts:160 unwrap Err unwrap Err ( ) : undefined | E Returns undefined | E Defined in result.d.ts:164 unwrap Exact unwrap Exact ( ) : A Returns A Defined in result.d.ts:169
Methods available on Result objects.