Skip to content

Commit

Permalink
fix: methodParams should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-greene-ck committed May 24, 2019
1 parent f9509f3 commit 9f39218
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/main/render/thrift-server/service/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export function renderMethodParametersProperty(): ts.PropertyDeclaration {
ts.createToken(ts.SyntaxKind.ReadonlyKeyword),
],
COMMON_IDENTIFIERS._methodParameters,
undefined,
ts.createToken(ts.SyntaxKind.QuestionToken),
methodParamMapType,
COMMON_IDENTIFIERS.methodParameters,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ export class Client<Context = any> extends thrift.ThriftClient<Context> {
public readonly _annotations: thrift.IThriftAnnotations = annotations;
public readonly _methodAnnotations: thrift.IMethodAnnotations = methodAnnotations;
public readonly _methodNames: Array<string> = methodNames;
public readonly _methodParameters: {
public readonly _methodParameters?: {
[methodName: string]: number;
} = methodParameters;
public getUser(id: number, context?: Context): Promise<IUser> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ export class Client<Context = any> extends thrift.ThriftClient<Context> {
public readonly _annotations: thrift.IThriftAnnotations = annotations;
public readonly _methodAnnotations: thrift.IMethodAnnotations = methodAnnotations;
public readonly _methodNames: Array<string> = methodNames;
public readonly _methodParameters: {
public readonly _methodParameters?: {
[methodName: string]: number;
} = methodParameters;
public getUser(id: number, context?: Context): Promise<IUser> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export class Client<Context = any> extends thrift.ThriftClient<Context> {
public readonly _annotations: thrift.IThriftAnnotations = annotations;
public readonly _methodAnnotations: thrift.IMethodAnnotations = methodAnnotations;
public readonly _methodNames: Array<string> = methodNames;
public readonly _methodParameters: {
public readonly _methodParameters?: {
[methodName: string]: number;
} = methodParameters;
public getUser(arg1: MyUnionArgs, context?: Context): Promise<string> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export class Client<Context = any> extends thrift.ThriftClient<Context> {
public readonly _annotations: thrift.IThriftAnnotations = annotations;
public readonly _methodAnnotations: thrift.IMethodAnnotations = methodAnnotations;
public readonly _methodNames: Array<string> = methodNames;
public readonly _methodParameters: {
public readonly _methodParameters?: {
[methodName: string]: number;
} = methodParameters;
public getStruct(key: number, context?: Context): Promise<__NAMESPACE__.ISharedStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2577,7 +2577,7 @@ export class Client<Context = any> extends __ROOT_NAMESPACE__.SharedService.Clie
public readonly _annotations: thrift.IThriftAnnotations = annotations;
public readonly _methodAnnotations: thrift.IMethodAnnotations = methodAnnotations;
public readonly _methodNames: Array<string> = methodNames;
public readonly _methodParameters: {
public readonly _methodParameters?: {
[methodName: string]: number;
} = methodParameters;
constructor(connection: thrift.IThriftConnection<Context>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export class Client<Context = any> extends thrift.ThriftClient<Context> {
public readonly _annotations: thrift.IThriftAnnotations = annotations;
public readonly _methodAnnotations: thrift.IMethodAnnotations = methodAnnotations;
public readonly _methodNames: Array<string> = methodNames;
public readonly _methodParameters: {
public readonly _methodParameters?: {
[methodName: string]: number;
} = methodParameters;
public getStruct(key: number, context?: Context): Promise<__NAMESPACE__.ISharedStruct> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2577,7 +2577,7 @@ export class Client<Context = any> extends __ROOT_NAMESPACE__.SharedService.Clie
public readonly _annotations: thrift.IThriftAnnotations = annotations;
public readonly _methodAnnotations: thrift.IMethodAnnotations = methodAnnotations;
public readonly _methodNames: Array<string> = methodNames;
public readonly _methodParameters: {
public readonly _methodParameters?: {
[methodName: string]: number;
} = methodParameters;
constructor(connection: thrift.IThriftConnection<Context>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ export class Client<Context = any> extends thrift.ThriftClient<Context> {
public readonly _annotations: thrift.IThriftAnnotations = annotations;
public readonly _methodAnnotations: thrift.IMethodAnnotations = methodAnnotations;
public readonly _methodNames: Array<string> = methodNames;
public readonly _methodParameters: {
public readonly _methodParameters?: {
[methodName: string]: number;
} = methodParameters;
public peg(name: string, context?: Context): Promise<string> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class Client<Context = any> extends thrift.ThriftClient<Context> {
public readonly _annotations: thrift.IThriftAnnotations = annotations;
public readonly _methodAnnotations: thrift.IMethodAnnotations = methodAnnotations;
public readonly _methodNames: Array<string> = methodNames;
public readonly _methodParameters: {
public readonly _methodParameters?: {
[methodName: string]: number;
} = methodParameters;
public ping(id: number | string | thrift.Int64, context?: Context): Promise<void> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ export class Client<Context = any> extends thrift.ThriftClient<Context> {
public readonly _annotations: thrift.IThriftAnnotations = annotations;
public readonly _methodAnnotations: thrift.IMethodAnnotations = methodAnnotations;
public readonly _methodNames: Array<string> = methodNames;
public readonly _methodParameters: {
public readonly _methodParameters?: {
[methodName: string]: number;
} = methodParameters;
public peg(name: string, context?: Context): Promise<string> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export class Client<Context = any> extends thrift.ThriftClient<Context> {
public readonly _annotations: thrift.IThriftAnnotations = annotations;
public readonly _methodAnnotations: thrift.IMethodAnnotations = methodAnnotations;
public readonly _methodNames: Array<string> = methodNames;
public readonly _methodParameters: {
public readonly _methodParameters?: {
[methodName: string]: number;
} = methodParameters;
public peg(name: string, context?: Context): Promise<string> {
Expand Down

0 comments on commit 9f39218

Please sign in to comment.