- once<K>(name, callback): (() => void)
Type Parameters
- K extends string | number | symbol
Parameters
- name: K
- callback: ((...args: Parameters<T[K]>) => ReturnType<T[K]>)
- (...args): ReturnType<T[K]>
Parameters
Rest
...args: Parameters<T[K]>
Returns ReturnType<T[K]>
Returns (() => void)