PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@celo/contractkit/node_modules/fp-ts/es6
Просмотр файла: Traced.d.ts
import { Comonad2C } from './Comonad';
import { Monoid } from './Monoid';
import { Functor2 } from './Functor';
declare module './HKT' {
interface URItoKind2<E, A> {
Traced: Traced<E, A>;
}
}
/**
* @since 2.0.0
*/
export declare const URI = "Traced";
/**
* @since 2.0.0
*/
export declare type URI = typeof URI;
/**
* @since 2.0.0
*/
export interface Traced<P, A> {
(p: P): A;
}
/**
* Extracts a value at a relative position which depends on the current value.
*
* @since 2.0.0
*/
export declare function tracks<P, A>(M: Monoid<P>, f: (a: A) => P): (wa: Traced<P, A>) => A;
/**
* Get the current position
*
* @since 2.0.0
*/
export declare function listen<P, A>(wa: Traced<P, A>): Traced<P, [A, P]>;
/**
* Get a value which depends on the current position
*
* @since 2.0.0
*/
export declare function listens<P, B>(f: (p: P) => B): <A>(wa: Traced<P, A>) => Traced<P, [A, B]>;
/**
* Apply a function to the current position
*
* @since 2.0.0
*/
export declare function censor<P>(f: (p: P) => P): <A>(wa: Traced<P, A>) => Traced<P, A>;
/**
* @since 2.0.0
*/
export declare function getComonad<P>(monoid: Monoid<P>): Comonad2C<URI, P>;
/**
* @since 2.0.0
*/
export declare const traced: Functor2<URI>;
declare const map: <A, B>(f: (a: A) => B) => <E>(fa: Traced<E, A>) => Traced<E, B>;
export {
/**
* @since 2.0.0
*/
map };
Выполнить команду
Для локальной разработки. Не используйте в интернете!