Repository navigation
Convert ember-metal/transaction to typescript - #16658
Conversation
rwjblue
left a comment
There was a problem hiding this comment.
Will need to bump eslint-typescript-parser to ^15.0.0 to stay compatible with [email protected].
| export type DidRenderFunc = (object: any, key: string, reference: any) => void; | ||
| export type AssertNotRenderedFunc = (obj: object, keyName: string) => void; | ||
|
|
||
| export const runInTransaction: RunInTransactionFunc; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
@rwjblue You're right. I was over-thinking it. Fixed in latest commit.
|
Updates look good to me, thank you! I’ll leave it to @krisselden for final review/merging though (I’m a TS newb...). |
Updated in latest commit |
Travis seems to be timing out on one test suite. |
|
restarted |
Also upgrades broccoli-typescript-compiler so as to pull in typescript 2.8, which I needed for the conditional types in
runInTransaction.