1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-02 08:48:32 +09:00
This commit is contained in:
syuilo 2018-11-04 21:11:54 +09:00
parent a87c5899c5
commit d48c25d2c9
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -28,6 +28,8 @@ export default function <T extends IEndpointMeta>(meta: T, cb: (params: Params<T
}
function getParams<T extends IEndpointMeta>(defs: T, params: any): [Params<T>, Error] {
if (defs.params == null) return [params, null];
const x: any = {};
let err: Error = null;
Object.entries(defs.params).some(([k, def]) => {