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

@ts-rest/core

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-rest/core - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

2

package.json
{
"name": "@ts-rest/core",
"version": "0.1.7",
"version": "0.1.8",
"description": "RPC-like experience over a regular REST API, with type safe server implementations 🪄",

@@ -5,0 +5,0 @@ "type": "commonjs",

import { AppRoute, AppRouter } from './dsl';
import { Without } from './type-utils';
declare type AppRouteShape<T extends AppRoute> = (params: Parameters<T['path']>[0]) => Promise<T['response']>;
declare type AppRouteShape<T extends AppRoute> = Parameters<T['path']>[0] extends never ? (...params: unknown[]) => Promise<T['response']> : (params: Parameters<T['path']>[0], ...moreParams: unknown[]) => Promise<T['response']>;
declare type AppRouterControllerShape<T extends AppRouter> = {

@@ -5,0 +5,0 @@ [K in keyof T]: T[K] extends AppRouter ? undefined : T[K] extends AppRoute ? AppRouteShape<T[K]> : never;

Sorry, the diff of this file is not supported yet

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