Innovenergy_trunk/frontend/node_modules/fp-ts/es6/FromThese.d.ts

74 lines
2.2 KiB
TypeScript
Raw Permalink Normal View History

import { HKT2, Kind2, Kind3, Kind4, URIS2, URIS3, URIS4 } from './HKT'
import { These } from './These'
/**
* @category model
* @since 2.11.0
*/
export interface FromThese<F> {
readonly URI: F
readonly fromThese: <E, A>(e: These<E, A>) => HKT2<F, E, A>
}
/**
* @category model
* @since 2.11.0
*/
export interface FromThese2<F extends URIS2> {
readonly URI: F
readonly fromThese: <E, A>(fa: These<E, A>) => Kind2<F, E, A>
}
/**
* @category model
* @since 2.11.0
*/
export interface FromThese2C<F extends URIS2, E> {
readonly URI: F
readonly _E: E
readonly fromThese: <A>(fa: These<E, A>) => Kind2<F, E, A>
}
/**
* @category model
* @since 2.11.0
*/
export interface FromThese3<F extends URIS3> {
readonly URI: F
readonly fromThese: <E, A, R>(fa: These<E, A>) => Kind3<F, R, E, A>
}
/**
* @category model
* @since 2.11.0
*/
export interface FromThese3C<F extends URIS3, E> {
readonly URI: F
readonly _E: E
readonly fromThese: <A, R>(fa: These<E, A>) => Kind3<F, R, E, A>
}
/**
* @category model
* @since 2.11.0
*/
export interface FromThese4<F extends URIS4> {
readonly URI: F
readonly fromThese: <E, A, S, R>(fa: These<E, A>) => Kind4<F, S, R, E, A>
}
/**
* @since 2.11.0
*/
export declare function fromTheseK<F extends URIS4>(
F: FromThese4<F>
): <A extends ReadonlyArray<unknown>, E, B>(f: (...a: A) => These<E, B>) => <S, R>(...a: A) => Kind4<F, S, R, E, B>
export declare function fromTheseK<F extends URIS3>(
F: FromThese3<F>
): <A extends ReadonlyArray<unknown>, E, B>(f: (...a: A) => These<E, B>) => <R>(...a: A) => Kind3<F, R, E, B>
export declare function fromTheseK<F extends URIS3, E>(
F: FromThese3C<F, E>
): <A extends ReadonlyArray<unknown>, B>(f: (...a: A) => These<E, B>) => <R>(...a: A) => Kind3<F, R, E, B>
export declare function fromTheseK<F extends URIS2>(
F: FromThese2<F>
): <A extends ReadonlyArray<unknown>, E, B>(f: (...a: A) => These<E, B>) => (...a: A) => Kind2<F, E, B>
export declare function fromTheseK<F extends URIS2, E>(
F: FromThese2C<F, E>
): <A extends ReadonlyArray<unknown>, B>(f: (...a: A) => These<E, B>) => (...a: A) => Kind2<F, E, B>
export declare function fromTheseK<F>(
F: FromThese<F>
): <A extends ReadonlyArray<unknown>, E, B>(f: (...a: A) => These<E, B>) => (...a: A) => HKT2<F, E, B>