@grpc.ts/core
Advanced tools
Comparing version 1.1.3 to 1.1.4
export { createSecureContext } from 'tls'; | ||
export { status, Metadata, credentials, StatusBuilder, type ServiceError, type StatusObject, type ServerUnaryCall, } from '@grpc/grpc-js'; | ||
export type { UnaryCallback } from '@grpc/grpc-js/build/src/client'; | ||
export type { ServiceClient } from '@grpc/grpc-js/build/src/make-client'; | ||
@@ -10,2 +9,2 @@ export type { Timestamp } from 'google-protobuf/google/protobuf/timestamp_pb'; | ||
export * from './utils'; | ||
export type { IClientProps, IServerProps, TUnaryHandlerFunc, IServerWrapperProps, TAddUnaryHandlerFunc, IAddUnaryHandlerOptionsProps, } from './interface'; | ||
export type { IClientProps, IServerProps, TUnaryCallback, TUnaryHandlerFunc, IServerWrapperProps, TAddUnaryHandlerFunc, IAddUnaryHandlerOptionsProps, } from './interface'; |
import type { Options } from '@grpc/proto-loader'; | ||
import type { UnaryCallback } from '@grpc/grpc-js/build/src/client'; | ||
import type { ServiceClient } from '@grpc/grpc-js/build/src/make-client'; | ||
import type { Server, Metadata, ServerUnaryCall, ServerCredentials, ChannelCredentials } from '@grpc/grpc-js'; | ||
import type { Server, Metadata, ServiceError, StatusObject, ServerUnaryCall, ServerCredentials, ChannelCredentials } from '@grpc/grpc-js'; | ||
export type TCompressionAlgorithms = 'identity' | 'deflate' | 'gzip'; | ||
export type TUnaryCallback<ResponseType> = (err: ServiceError | Partial<StatusObject> | null, value?: ResponseType) => void; | ||
export interface IChannelOptionsProps { | ||
@@ -59,3 +59,3 @@ serviceConfig?: string; | ||
} | ||
export type TUnaryHandlerFunc<TRequest = unknown, TResponse = unknown> = (request: TRequest, metadata: Metadata, call: ServerUnaryCall<TRequest, TResponse>, callback: UnaryCallback<TResponse>) => TResponse; | ||
export type TUnaryHandlerFunc<TRequest = unknown, TResponse = unknown> = (request: TRequest, metadata: Metadata, call: ServerUnaryCall<TRequest, TResponse>, callback: TUnaryCallback<TResponse>) => TResponse; | ||
export type TAddUnaryHandlerFunc<TRequest = unknown> = (serviceName: string, rpcName: string, impl: TUnaryHandlerFunc<TRequest>, options?: IAddUnaryHandlerOptionsProps) => void; | ||
@@ -62,0 +62,0 @@ export interface IServerWrapperProps<TRequest = unknown> { |
{ | ||
"name": "@grpc.ts/core", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "directories": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43743
1055