Generic function type (safer than using any).
any
const example = (callback: GenericFunction) => callback("test");
Rest
Generic function type (safer than using
any
).Example