Interface FlarumRequestOptions<ResponseType>

Type Parameters

  • ResponseType

Hierarchy

  • Omit<Mithril.RequestOptions<ResponseType>, "extract">
    • FlarumRequestOptions

Properties

errorHandler?: ((error: RequestError<string>) => void)

Type declaration

extract?: ((responseText: string) => string)

Type declaration

    • (responseText: string): string
    • Manipulate the response text before it is parsed into JSON.

      Deprecated

      Please use modifyText instead.

      Parameters

      • responseText: string

      Returns string

modifyText?: ((responseText: string) => string)

Type declaration

    • (responseText: string): string
    • Manipulate the response text before it is parsed into JSON.

      This overrides any extract method provided.

      Parameters

      • responseText: string

      Returns string

url: string

Generated using TypeDoc v0.23.24