-
Notifications
You must be signed in to change notification settings - Fork 1.1k
chore: upgrade to TypeScript 3.5 #2996
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(EDITED) Please make sure the build is passing before merging.
@@ -98,7 +101,7 @@ describe('TodoController', () => { | |||
|
|||
describe('patch()', () => { | |||
it('returns a number of todos updated', async () => { | |||
patch.resolves([aChangedTodo].length); | |||
patch.resolves({count: [aChangedTodo].length}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! IIUC, the stricter type checks are detecting programming errors we were not aware of 👍
packages/boot/src/__tests__/unit/booters/datasource.booter.unit.ts
Outdated
Show resolved
Hide resolved
@@ -100,7 +100,7 @@ describe('TodoController', () => { | |||
|
|||
it('uses the provided filter', async () => { | |||
const find = todoRepo.stubs.find; | |||
const filter: Filter = {where: {isCompleted: false}}; | |||
const filter: Filter<Todo> = {where: {isComplete: false}}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 👍
Fixed the problems in d92f661 |
Rebased on top of the latest |
Upgrade to TypeScript 3.5
I have to address a few breaking changes:
unknown
instead of{}
now.Checklist
👉 Read and sign the CLA (Contributor License Agreement) 👈
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated👉 Check out how to submit a PR 👈