function defer defer(callback?): unknown Create promise, Leaking resolve and reject methods from the executor, which allows the promise to be resolved from elsewhere. Parameters optional callback Return Type unknown