UNPKG

samira

Version:

A TypeScript library for League of Legends API calls

16 lines 525 B
export declare class Left<L, R> { readonly value: L; constructor(value: L); isRight(): this is Right<L, R>; isLeft(): this is Left<L, R>; } export declare class Right<L, R> { readonly value: R; constructor(value: R); isRight(): this is Right<L, R>; isLeft(): this is Left<L, R>; } export type Either<L, R> = Left<L, R> | Right<L, R>; export declare const left: <L, R>(value: L) => Either<L, R>; export declare const right: <L, R>(value: R) => Either<L, R>; //# sourceMappingURL=either.d.ts.map