| 19 | * @public |
| 20 | */ |
| 21 | export interface Styler { |
| 22 | /** |
| 23 | * Get the latest value of a given key. |
| 24 | * |
| 25 | * @param key - The name of the property to read. |
| 26 | * @param forceRead - If `true`, will force a potentially expensive read. Defaults to `false`. |
| 27 | */ |
| 28 | get: (key: string, forceRead?: boolean) => any; |
| 29 | |
| 30 | /** |
| 31 | * Set a value or many values. |
| 32 | * |
| 33 | * This will trigger the scheduling of a render on the next available frame. |
| 34 | * |
| 35 | * @param key/state - Either the name of the prop to set, or an object map of values. |
| 36 | * @param value - If `key` is a string, the value to set to that string. |
| 37 | */ |
| 38 | set: (key: string | State, value?: any) => Styler; |
| 39 | |
| 40 | /** |
| 41 | * Will immediately trigger render if any values have changed. |
| 42 | * |
| 43 | * Useful for synchronous write/measure operations. |
| 44 | * |
| 45 | * @param forceRender - If `true`, will force a render even if no values have changed. |
| 46 | */ |
| 47 | render: (forceRender?: boolean) => Styler; |
| 48 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…