mirror of
https://github.com/flarum/framework.git
synced 2025-01-11 05:43:40 +08:00
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;
|