Skip to content

Conversation

@daxingplay
Copy link
Contributor

@daxingplay daxingplay commented Jan 4, 2019

I need to config return codes when construct RPCClient as defined in the code:

this.codes = new Set([200, '200', 'OK', 'Success']);
if (config.codes) {
// 合并 codes
for (var elem of config.codes) {
this.codes.add(elem);
}
}

But this codes config was not defined in rpc.d.ts, so I submit this PR to add codes type definition in that declaration file.

@JacksonTian JacksonTian merged commit e367930 into aliyun:master Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants