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

55 lines
1.6 KiB
TypeScript
Raw Normal View History

/**
* @since 2.0.0
*/
import { Functor, Functor1, Functor2, Functor2C, Functor3, Functor4, Functor3C } from './Functor'
import { HKT, Kind, Kind2, Kind3, URIS, URIS2, URIS3, URIS4, Kind4 } from './HKT'
/**
* @category model
* @since 2.0.0
*/
export interface Extend<W> extends Functor<W> {
readonly extend: <A, B>(wa: HKT<W, A>, f: (wa: HKT<W, A>) => B) => HKT<W, B>
}
/**
* @category model
* @since 2.0.0
*/
export interface Extend1<W extends URIS> extends Functor1<W> {
readonly extend: <A, B>(wa: Kind<W, A>, f: (wa: Kind<W, A>) => B) => Kind<W, B>
}
/**
* @category model
* @since 2.0.0
*/
export interface Extend2<W extends URIS2> extends Functor2<W> {
readonly extend: <E, A, B>(wa: Kind2<W, E, A>, f: (wa: Kind2<W, E, A>) => B) => Kind2<W, E, B>
}
/**
* @category model
* @since 2.0.0
*/
export interface Extend2C<W extends URIS2, E> extends Functor2C<W, E> {
readonly extend: <A, B>(wa: Kind2<W, E, A>, f: (wa: Kind2<W, E, A>) => B) => Kind2<W, E, B>
}
/**
* @category model
* @since 2.0.0
*/
export interface Extend3<W extends URIS3> extends Functor3<W> {
readonly extend: <R, E, A, B>(wa: Kind3<W, R, E, A>, f: (wa: Kind3<W, R, E, A>) => B) => Kind3<W, R, E, B>
}
/**
* @category model
* @since 2.2.0
*/
export interface Extend3C<W extends URIS3, E> extends Functor3C<W, E> {
readonly extend: <R, A, B>(wa: Kind3<W, R, E, A>, f: (wa: Kind3<W, R, E, A>) => B) => Kind3<W, R, E, B>
}
/**
* @category model
* @since 2.0.0
*/
export interface Extend4<W extends URIS4> extends Functor4<W> {
readonly extend: <S, R, E, A, B>(wa: Kind4<W, S, R, E, A>, f: (wa: Kind4<W, S, R, E, A>) => B) => Kind4<W, S, R, E, B>
}