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

chore: revert https://github.com/strongloop/loopback-next/pull/2976 #2983

Merged
merged 1 commit into from
May 28, 2019

Conversation

raymondfeng
Copy link
Contributor

Revert #2976

@jannyHou Please try the following:

cd loopback-next
npm run clean:lerna
rm -rf node_modules
npm i
npm run build

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

@raymondfeng raymondfeng requested a review from bajtos as a code owner May 28, 2019 18:32
@raymondfeng raymondfeng requested review from jannyHou and removed request for bajtos May 28, 2019 18:32
Copy link
Contributor

@jannyHou jannyHou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Raymond I run into that problem with a newly cloned loopback-next. I remember the cmds I run are:

npm i
npm test

I agree that the argument here should be a handler, my fix was in a wrong direction. I am trying your cmds now but not sure if they could fix the build error.

The function overloading here expects the argument to be an Application not handler.

@raymondfeng
Copy link
Contributor Author

@jannyHou

export interface IRouterMatcher<T> {
    (path: PathParams, ...handlers: RequestHandler[]): T;
    (path: PathParams, ...handlers: RequestHandlerParams[]): T;
    (path: PathParams, subApplication: Application): T;
}

The interface above allows (path, handler) and our code is compatible with it.

@raymondfeng raymondfeng merged commit c949e85 into master May 28, 2019
@raymondfeng raymondfeng deleted the revert-2976 branch May 28, 2019 20:40
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