Skip to content

fix: improve Service and AdapterService types#1567

Merged
daffl merged 2 commits intofeathersjs:masterfrom
vonagam:feat-improve-service-type
Oct 10, 2019
Merged

fix: improve Service and AdapterService types#1567
daffl merged 2 commits intofeathersjs:masterfrom
vonagam:feat-improve-service-type

Conversation

@vonagam
Copy link
Member

@vonagam vonagam commented Sep 19, 2019

  1. Type multi usages of create/update/patch/remove in ServiceMethods, ServiceOverloads and AdapterService.

  2. Remove this patch() overload from ServiceOverloads. It does not do anything really.

  3. In AdapterService removed Promise<T> as possible result of find() method, since no adapter does that (or am i wrong?). Small breaking change, super easily fixed by removing T | from types of adapters in _find methods.

@vonagam vonagam force-pushed the feat-improve-service-type branch from d247ea8 to 0822c38 Compare September 19, 2019 17:28
@vonagam vonagam force-pushed the feat-improve-service-type branch from 0822c38 to 7453c41 Compare September 21, 2019 19:48
@daffl daffl changed the title feat: improve Service and AdapterService types fix: improve Service and AdapterService types Oct 10, 2019
@daffl daffl merged commit baad6a2 into feathersjs:master Oct 10, 2019
@vonagam vonagam deleted the feat-improve-service-type branch October 11, 2019 02:40
daffl pushed a commit that referenced this pull request Apr 11, 2020
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