Skip to content

Convert ember-metal/transaction to typescript - #16658

Merged
krisselden merged 4 commits into
emberjs:masterfrom
csantero:transaction
May 21, 2018
Merged

krisselden merged 4 commits into
emberjs:masterfrom
csantero:transaction

Conversation

@csantero

Copy link
Copy Markdown
Contributor

Also upgrades broccoli-typescript-compiler so as to pull in typescript 2.8, which I needed for the conditional types in runInTransaction.

@rwjblue rwjblue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Will need to bump eslint-typescript-parser to ^15.0.0 to stay compatible with [email protected].

Comment thread packages/ember-metal/index.d.ts Outdated
export type DidRenderFunc = (object: any, key: string, reference: any) => void;
export type AssertNotRenderedFunc = (obj: object, keyName: string) => void;

export const runInTransaction: RunInTransactionFunc;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't grok why we need this (along with the other lines above), I would have thought you could replace the preexisting export function runInTransaction line with export { runInTransaction } from './lib/transaction'; and all of these types in this index.d.ts wouldn't need to be redefined. What am I missing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@rwjblue You're right. I was over-thinking it. Fixed in latest commit.

@rwjblue
rwjblue requested a review from krisselden May 19, 2018 02:56
@rwjblue

rwjblue commented May 19, 2018

Copy link
Copy Markdown
Member

Updates look good to me, thank you!

I’ll leave it to @krisselden for final review/merging though (I’m a TS newb...).

@csantero

Copy link
Copy Markdown
Contributor Author

Will need to bump eslint-typescript-parser to ^15.0.0 to stay compatible with [email protected].

Updated in latest commit

@csantero

Copy link
Copy Markdown
Contributor Author

Error: Navigation Timeout Exceeded: 30000ms exceeded

Travis seems to be timing out on one test suite.

@rwjblue

rwjblue commented May 21, 2018

Copy link
Copy Markdown
Member

restarted

@krisselden
krisselden merged commit b415004 into emberjs:master May 21, 2018
@csantero
csantero deleted the transaction branch May 21, 2018 17:37
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