Warning
You should make sure that this does not include the properties headers
, method
or body
in order to not conflict with the internally used properties.
To make use of the web fetch options, merge them into this like so (assuming that RequestInit is the global type from the dom lib):
declare module '@twurple/api-call' { export interface TwitchApiCallFetchOptions extends Omit<RequestInit, 'headers' | 'method' | 'body'> {} }
To make use of the node-fetch options, merge them into this like so:
import type { RequestInit as NodeRequestInit } from 'node-fetch'; declare module '@twurple/api-call' { export interface TwitchApiCallFetchOptions extends Omit<NodeRequestInit, 'headers' | 'method' | 'body'> {} }
{}