UNPKG

@logi.one/rest-client

Version:

This is a free, ultra-lightweight and easy to use rest client for node.js supporting JSON requests and streams with no external dependencies.

12 lines (11 loc) 354 B
import { Search } from './search'; import { StandardSchemaV1 } from './standard-schema.v1'; export interface RequestOptions<T> { token?: string; headers?: Record<string, string>; body?: T | undefined; search?: Search; } export interface RequestOptionsWithSchema<T, S extends StandardSchemaV1> extends RequestOptions<T> { schema: S; }