Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ianmartorell/restyped-axios

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ianmartorell/restyped-axios - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

6

dist/index.d.ts
import { AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelStatic, CancelTokenStatic } from 'axios';
import { RestypedBase, RestypedIndexedBase, RestypedRoute } from 'restyped';
export interface TypedAxiosRequestConfig<API extends RestypedIndexedBase, Path extends Extract<keyof API, string>, Method extends keyof API[Path], RouteDef extends RestypedRoute = API[Path][Method]> extends AxiosRequestConfig {
import { RestypedBase, RestypedRoute } from 'restyped';
export interface TypedAxiosRequestConfig<API extends RestypedBase, Path extends Extract<keyof API, string>, Method extends keyof API[Path], RouteDef extends RestypedRoute = API[Path][Method]> extends AxiosRequestConfig {
url?: Path;

@@ -9,3 +9,3 @@ method?: Extract<Method, string>;

}
export interface TypedAxiosResponse<API extends RestypedIndexedBase, Path extends Extract<keyof API, string>, Method extends keyof API[Path], RouteDef extends RestypedRoute = API[Path][Method]> extends AxiosResponse {
export interface TypedAxiosResponse<API extends RestypedBase, Path extends Extract<keyof API, string>, Method extends keyof API[Path], RouteDef extends RestypedRoute = API[Path][Method]> extends AxiosResponse {
data: RouteDef['response'];

@@ -12,0 +12,0 @@ config: TypedAxiosRequestConfig<API, Path, Method>;

{
"name": "@ianmartorell/restyped-axios",
"version": "2.0.1",
"version": "2.0.2",
"description": "Axios typings for consuming RESTyped APIs",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc