The hook Event-Library ported to TypeScript.