@nmtjs/contract
Advanced tools
Comparing version 0.4.8 to 0.5.0
@@ -12,4 +12,4 @@ { | ||
"dependencies": { | ||
"@nmtjs/common": "0.4.8", | ||
"@nmtjs/type": "0.4.8" | ||
"@nmtjs/common": "0.5.0", | ||
"@nmtjs/type": "0.5.0" | ||
}, | ||
@@ -23,3 +23,3 @@ "files": [ | ||
], | ||
"version": "0.4.8", | ||
"version": "0.5.0", | ||
"scripts": { | ||
@@ -26,0 +26,0 @@ "build": "neemata-build -p neutral --root=./src './**/*.ts'", |
@@ -1,2 +0,2 @@ | ||
import { type BaseType, type TSchema, getTypeSchema } from '@nmtjs/type' | ||
import type { BaseType, BaseTypeAny } from '@nmtjs/type' | ||
import { type ContractSchemaOptions, createSchema } from '../utils.ts' | ||
@@ -7,3 +7,3 @@ | ||
export interface TEventContract< | ||
Payload extends BaseType = BaseType, | ||
Payload extends BaseTypeAny = BaseTypeAny, | ||
Name extends string | undefined = string | undefined, | ||
@@ -20,3 +20,3 @@ ServiceName extends string | undefined = string | undefined, | ||
export const EventContract = <Payload extends BaseType>( | ||
export const EventContract = <Payload extends BaseTypeAny>( | ||
payload: Payload, | ||
@@ -23,0 +23,0 @@ schemaOptions: ContractSchemaOptions = {} as ContractSchemaOptions, |
@@ -1,2 +0,2 @@ | ||
import type { BaseType } from '@nmtjs/type' | ||
import type { BaseTypeAny } from '@nmtjs/type' | ||
import { type ContractSchemaOptions, createSchema } from '../utils.ts' | ||
@@ -6,4 +6,4 @@ | ||
Type extends string = string, | ||
Input extends BaseType = BaseType, | ||
Output extends BaseType = BaseType, | ||
Input extends BaseTypeAny = BaseTypeAny, | ||
Output extends BaseTypeAny = BaseTypeAny, | ||
Name extends string | undefined = string | undefined, | ||
@@ -25,4 +25,4 @@ ServiceName extends string | undefined = string | undefined, | ||
export interface TProcedureContract< | ||
Input extends BaseType = BaseType, | ||
Output extends BaseType = BaseType, | ||
Input extends BaseTypeAny = BaseTypeAny, | ||
Output extends BaseTypeAny = BaseTypeAny, | ||
Name extends string | undefined = string | undefined, | ||
@@ -43,4 +43,4 @@ ServiceName extends string | undefined = string | undefined, | ||
export const ProcedureContract = < | ||
Input extends BaseType, | ||
Output extends BaseType, | ||
Input extends BaseTypeAny, | ||
Output extends BaseTypeAny, | ||
>( | ||
@@ -47,0 +47,0 @@ input: Input, |
@@ -1,2 +0,2 @@ | ||
import type { BaseType } from '@nmtjs/type' | ||
import type { BaseTypeAny } from '@nmtjs/type' | ||
import { type ContractSchemaOptions, createSchema } from '../utils.ts' | ||
@@ -9,4 +9,4 @@ import type { TEventContract } from './event.ts' | ||
export interface TSubscriptionContract< | ||
Input extends BaseType = BaseType, | ||
Output extends BaseType = BaseType, | ||
Input extends BaseTypeAny = BaseTypeAny, | ||
Output extends BaseTypeAny = BaseTypeAny, | ||
Options extends SubcriptionOptions = SubcriptionOptions, | ||
@@ -35,4 +35,4 @@ Events extends Record<string, TEventContract> = Record< | ||
export const SubscriptionContract = < | ||
Input extends BaseType = BaseType, | ||
Output extends BaseType = BaseType, | ||
Input extends BaseTypeAny = BaseTypeAny, | ||
Output extends BaseTypeAny = BaseTypeAny, | ||
Events extends Record<string, TEventContract> = Record< | ||
@@ -39,0 +39,0 @@ string, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
28649
+ Added@nmtjs/common@0.5.0(transitive)
+ Added@nmtjs/type@0.5.0(transitive)
- Removed@nmtjs/common@0.4.8(transitive)
- Removed@nmtjs/type@0.4.8(transitive)
Updated@nmtjs/common@0.5.0
Updated@nmtjs/type@0.5.0