Skip to main content Link Search Menu Expand Document (external link)

Body overview

Added in v0.3.0


Table of contents


encoder

form

Signature

export declare const form: (input: FormData | Record<string, string | Array<unknown>>) => Form

Added in v0.3.0

json

Signature

export declare const json: (input: object) => Json

Added in v0.3.0

text

Signature

export declare const text: (input: string) => Text

Added in v0.3.0

model

Body (type alias)

Signature

export type Body = Text | Json | Form

Added in v0.3.0

Form (interface)

Signature

export interface Form extends Base {
  readonly _id: "Form"
  readonly value: FormData
}

Added in v0.3.0

Json (interface)

Signature

export interface Json extends Text {}

Added in v0.3.0

Text (interface)

Signature

export interface Text extends Base {
  readonly _id: "Text"
  readonly value: string
}

Added in v0.3.0