diff --git a/es6-promises/es6-promises.d.ts b/es6-promises/es6-promises.d.ts index de651e42d..cec64a917 100644 --- a/es6-promises/es6-promises.d.ts +++ b/es6-promises/es6-promises.d.ts @@ -34,68 +34,68 @@ declare class Promise implements Thenable { /** - * onFullFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. + * onFulFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. * Both are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called. * Both callbacks have a single parameter , the fulfillment value or rejection reason. * "then" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise.resolve. * If an error is thrown in the callback, the returned promise rejects with that error. * - * @param onFullFill called when/if "promise" resolves + * @param onFulFill called when/if "promise" resolves * @param onReject called when/if "promise" rejects */ then(onFulfill: (value: R) => Thenable, onReject: (error: any) => Thenable): Promise; /** - * onFullFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. + * onFulFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. * Both are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called. * Both callbacks have a single parameter , the fulfillment value or rejection reason. * "then" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise.resolve. * If an error is thrown in the callback, the returned promise rejects with that error. * - * @param onFullFill called when/if "promise" resolves + * @param onFulFill called when/if "promise" resolves * @param onReject called when/if "promise" rejects */ then(onFulfill: (value: R) => Thenable, onReject: (error: any) => U): Promise; /** - * onFullFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. + * onFulFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. * Both are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called. * Both callbacks have a single parameter , the fulfillment value or rejection reason. * "then" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise.resolve. * If an error is thrown in the callback, the returned promise rejects with that error. * - * @param onFullFill called when/if "promise" resolves + * @param onFulFill called when/if "promise" resolves * @param onReject called when/if "promise" rejects */ then(onFulfill: (value: R) => U, onReject: (error: any) => Thenable): Promise; /** - * onFullFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. + * onFulFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. * Both are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called. * Both callbacks have a single parameter , the fulfillment value or rejection reason. * "then" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise.resolve. * If an error is thrown in the callback, the returned promise rejects with that error. * - * @param onFullFill called when/if "promise" resolves + * @param onFulFill called when/if "promise" resolves * @param onReject called when/if "promise" rejects */ then(onFulfill: (value: R) => U, onReject: (error: any) => U): Promise; /** - * onFullFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. + * onFulFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. * Both are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called. * Both callbacks have a single parameter , the fulfillment value or rejection reason. * "then" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise.resolve. * If an error is thrown in the callback, the returned promise rejects with that error. * - * @param onFullFill called when/if "promise" resolves + * @param onFulFill called when/if "promise" resolves * @param onReject called when/if "promise" rejects */ then(onFulfill: (value: R) => Thenable, onReject?: (error: any) => void): Promise; /** - * onFullFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. + * onFulFill is called when/if "promise" resolves. onRejected is called when/if "promise" rejects. * Both are optional, if either/both are omitted the next onFulfilled/onRejected in the chain is called. * Both callbacks have a single parameter , the fulfillment value or rejection reason. * "then" returns a new promise equivalent to the value you return from onFulfilled/onRejected after being passed through Promise.resolve. * If an error is thrown in the callback, the returned promise rejects with that error. * - * @param onFullFill called when/if "promise" resolves + * @param onFulFill called when/if "promise" resolves * @param onReject called when/if "promise" rejects */ then(onFulfill?: (value: R) => U, onReject?: (error: any) => void): Promise;