Interface RequestInterface
Callable
- __call<T>(options: EndpointOptions): Promise<OctokitResponse<T>>
- __call<R>(route: keyof Endpoints | R, options?: R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters): R extends keyof Endpoints ? Promise<Endpoints[R]["response"]> : Promise<OctokitResponse<any>>
-
Type parameters
Parameters
-
Type parameters
Parameters
-
route: keyof Endpoints | R
-
Optional options: R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters
Returns R extends keyof Endpoints ? Promise<Endpoints[R]["response"]> : Promise<OctokitResponse<any>>
Properties
defaults
defaults: function
endpoint
Sends a request based on endpoint options