rc-js-common
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -6,9 +6,9 @@ import { IPath } from "../i-path"; | ||
import { IVersionControlled } from "../i-version-controlled"; | ||
export interface IWebsocketEndpointOptions<TMessageToServer extends object, TMessageFromServer extends object, TParameters extends IDictionary<TUrlParameterValue>> extends IPath, IVersionControlled { | ||
export interface IWebsocketEndpointOptions<TMessageToServer extends object | null, TMessageFromServer extends object | null, TParameters extends IDictionary<TUrlParameterValue> | null> extends IPath, IVersionControlled { | ||
readonly method: "WEBSOCKET"; | ||
readonly schema: TMessageToServer extends null ? null : TModelSanitizerSpecification<TMessageToServer>; | ||
readonly urlParameterSchema: IDictionaryModelSpecification<TParameters> & TNonNullRequired<TParameters>; | ||
readonly schema: TMessageToServer extends null ? null : TModelSanitizerSpecification<NonNullable<TMessageToServer>>; | ||
readonly urlParameterSchema: TParameters extends null ? null : IDictionaryModelSpecification<NonNullable<TParameters>> & TNonNullRequired<TParameters>; | ||
readonly _responseType: TMessageFromServer; | ||
} | ||
export declare class WebsocketEndpointOptions<TMessageToServer extends object, TMessageFromServer extends object, TParameters extends IDictionary<TUrlParameterValue>> implements IWebsocketEndpointOptions<TMessageToServer, TMessageFromServer, TParameters> { | ||
export declare class WebsocketEndpointOptions<TMessageToServer extends object | null, TMessageFromServer extends object | null, TParameters extends IDictionary<TUrlParameterValue> | null> implements IWebsocketEndpointOptions<TMessageToServer, TMessageFromServer, TParameters> { | ||
readonly parent: IPath; | ||
@@ -18,6 +18,6 @@ readonly version: number; | ||
readonly path: string; | ||
readonly schema: TMessageToServer extends null ? null : TModelSanitizerSpecification<TMessageToServer>; | ||
readonly schema: TMessageToServer extends null ? null : TModelSanitizerSpecification<NonNullable<TMessageToServer>>; | ||
readonly _responseType: TMessageFromServer; | ||
readonly urlParameterSchema: IDictionaryModelSpecification<TParameters> & TNonNullRequired<TParameters>; | ||
readonly urlParameterSchema: TParameters extends null ? null : IDictionaryModelSpecification<NonNullable<TParameters>> & TNonNullRequired<TParameters>; | ||
constructor(config: Omit<IWebsocketEndpointOptions<TMessageToServer, TMessageFromServer, TParameters>, "_responseBody" | "method" | "_responseType">); | ||
} |
{ | ||
"name": "rc-js-common", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
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
107256