Files
KaTeX/flow-typed/object-assign.js
Ashish Myles cb7f166a7e To @flow: MacroExpander. (#845)
* To @flow: MacroExpander.

* Explicitly pass context into defineMacro called with a function.

Instead of binding `this` when `defineMacro` is invoked
with a function, we now pass an explicit context as a
parameter to the function. This is a bit more obvious
and is currently more type-safe due to a bug in `@flow`:
https://github.com/facebook/flow/issues/4809

* Per feedback, rename some types, fields, and variables.
2017-09-06 21:39:50 -04:00

7 lines
163 B
JavaScript

declare module 'object-assign' {
declare module.exports:
<T>(target: {[string]: T}, ...sources: Array<{[string]: T}>)
=> {[string]: T};
}