Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: types: pathParams can be initially undef
one might wish to write a client like this: ```js class Foo extends Gofer { constructor(cfg) { super(cfg, 'foo'); } bar({ x, y }) { return this.get('/{x}/{y}', { endpointName: 'bar', pathParams: { x, y }, }); } } const foo = new Foo({ foo: { pathParams: { x: 'whee' } } }); await foo.bar({ y: 'yay' }); ``` with the current types, it will complain that you're passing an undefined value as a pathParam, but really that will be dealt with in the config merging later on, so we should accept it
- Loading branch information