Skip to content

UpdatedCallback<U, K> ​

ts
type UpdatedCallback<U, K> = (name: K, value: U[K], oldValue?: U[K]) => void;

Callback invoked when a concrete uniform changes.

Type Parameters ​

U ​

U extends Record<string, unknown> = Record<string, never>

K ​

K extends Extract<keyof U, string> = Extract<keyof U, string>

Parameters ​

name ​

K

value ​

U[K]

oldValue? ​

U[K]

Returns ​

void

Released under the MIT License.