Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TypeScript declarations #78

Merged
merged 1 commit into from
Oct 27, 2017
Merged

Conversation

rybaczewa
Copy link
Contributor

TypeScript declarations are inconsistent between packages. Compiling throws an error All declarations of 'Service' must have identical type parameters.

There were 2 separate changes in Service declaration:

Most recent change didn't update this package.

Linking feathersjs-ecosystem/feathers-hooks#172 as well for possible future search of this problem.

@j2L4e
Copy link
Collaborator

j2L4e commented Oct 25, 2017

This will indeed work aronud the problems arisen through feathersjs/feathers#692 and feathersjs-ecosystem/feathers-hooks#173. It will basically have undone #69 on all packages. Which isn't too bad because we'd actually need Service<T = any> instead of Service<T extends any> to make any the default value. (I wrongly introduced extends, sorry for that).

This is a nightmare.
I think it'd be a good idea to get typings ready for buzzard and then backport what's necessary.

@j2L4e
Copy link
Collaborator

j2L4e commented Oct 25, 2017

tests fail due to #77

@daffl daffl merged commit d07e8b7 into feathersjs-ecosystem:master Oct 27, 2017
@daffl
Copy link
Member

daffl commented Oct 27, 2017

Test fixed in #79. Will release this shortly, thank you!

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.

3 participants