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

@gtsc/api-models

Package Overview
Dependencies
Maintainers
0
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gtsc/api-models - npm Package Compare versions

Comparing version 0.0.3-next.21 to 0.0.3-next.22

2

dist/types/models/routes/IRestRoute.d.ts

@@ -10,3 +10,3 @@ import type { HttpMethods } from "@gtsc/web";

*/
export interface IRestRoute<T extends IHttpRequest = IHttpRequest, U extends IHttpResponse & IRestRouteResponseOptions = IHttpResponse & IRestRouteResponseOptions> extends IBaseRoute {
export interface IRestRoute<T extends IHttpRequest = any, U extends IHttpResponse & IRestRouteResponseOptions = any> extends IBaseRoute {
/**

@@ -13,0 +13,0 @@ * Summary of what task the operation performs.

@@ -15,5 +15,5 @@ [**@gtsc/api-models**](../overview.md) • **Docs**

• **T** *extends* [`IHttpRequest`](IHttpRequest.md) = [`IHttpRequest`](IHttpRequest.md)
• **T** *extends* [`IHttpRequest`](IHttpRequest.md) = `any`
• **U** *extends* [`IHttpResponse`](IHttpResponse.md) & [`IRestRouteResponseOptions`](IRestRouteResponseOptions.md) = [`IHttpResponse`](IHttpResponse.md) & [`IRestRouteResponseOptions`](IRestRouteResponseOptions.md)
• **U** *extends* [`IHttpResponse`](IHttpResponse.md) & [`IRestRouteResponseOptions`](IRestRouteResponseOptions.md) = `any`

@@ -20,0 +20,0 @@ ## Properties

@@ -23,3 +23,3 @@ [**@gtsc/api-models**](../overview.md) • **Docs**

• **restRoutes**: [`IRestRoute`](IRestRoute.md)\<[`IHttpRequest`](IHttpRequest.md)\<`any`\>, [`IHttpResponse`](IHttpResponse.md)\<`any`\> & [`IRestRouteResponseOptions`](IRestRouteResponseOptions.md)\>[]
• **restRoutes**: [`IRestRoute`](IRestRoute.md)\<`any`, `any`\>[]

@@ -26,0 +26,0 @@ The REST routes.

{
"name": "@gtsc/api-models",
"version": "0.0.3-next.21",
"version": "0.0.3-next.22",
"description": "Contains models and classes for use with APIs",

@@ -5,0 +5,0 @@ "repository": {

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