@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
17 lines (16 loc) • 539 B
TypeScript
import type { Takeable } from './Takeable';
/**
* Represents any value with take chain functionality
*
* @deprecated [🤡] Use some better functional library instead of `TakeChain`
*
* @private util of `@promptbook/color`
*/
export type WithTake<TValue extends Takeable> = TValue & ITakeChain<TValue>;
/**
* Type describing take chain.
*/
export type ITakeChain<TValue extends Takeable> = {
readonly value: TValue;
then<TResultValue extends Takeable>(callback: (value: TValue) => TResultValue): WithTake<TResultValue>;
};