mirror of
https://github.com/flarum/framework.git
synced 2025-01-10 21:35:38 +08:00
c3a684c7ed
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
11 lines
397 B
TypeScript
11 lines
397 B
TypeScript
/**
|
|
* The `computed` utility creates a function that will cache its output until
|
|
* any of the dependent values are dirty.
|
|
*
|
|
* @param {...String} dependentKeys The keys of the dependent values.
|
|
* @param {function} compute The function which computes the value using the
|
|
* dependent values.
|
|
* @return {Function}
|
|
*/
|
|
export default function computed(...dependentKeys: string[]): Function;
|