tslib: OnLoad callback type for RequestHandler