Documentation

init

A function that is called immediately, with both the object and a callback to remove the listener.

init?: (object: T, stop: () => void) => void;

Related