UNPKG

ketting

Version:

Opiniated HATEAOS / Rest client.

15 lines (14 loc) 415 B
import { BaseState } from './base-state'; import { StateFactory } from './interface'; /** * Represents a resource state for text responses, such as text/plain, text/csv. * text/html, text/csv. */ export declare class TextState extends BaseState<string> { serializeBody(): string; clone(): TextState; } /** * Turns a HTTP response into a TextState */ export declare const factory: StateFactory<string>;