mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 09:03:36 +08:00
c3a684c7ed
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
14 lines
567 B
TypeScript
14 lines
567 B
TypeScript
declare const _default: (key: string, cb: Function) => (this: Element) => void;
|
|
/**
|
|
* An event handler factory that makes it simpler to implement data binding
|
|
* for component event listeners.
|
|
*
|
|
* The handler created by this factory passes the DOM element's attribute
|
|
* identified by the first argument to the callback (usually a bidirectional
|
|
* Mithril stream: https://mithril.js.org/stream.html#bidirectional-bindings).
|
|
*
|
|
* Replaces m.withAttr for Mithril 2.0.
|
|
* @see https://mithril.js.org/archive/v0.2.5/mithril.withAttr.html
|
|
*/
|
|
export default _default;
|