Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

chore(util): remove argument type for err #3451

Merged
merged 1 commit into from
Aug 5, 2016

Conversation

cnishina
Copy link
Contributor

@cnishina cnishina commented Aug 5, 2016

  • Fix argument of type 'string | Error' is not assignable to parameter of type 'string'.

- Fix argument of type 'string | Error' is not assignable to parameter of type 'string'.
err.stack = exports.filterStackTrace(err.stack);
throw err;
});
let results = when(filenameOrFn.apply(null, args), null, (err) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprised no type is needed for err but alright

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked into this and DefinitelyTyped q.when has defined a callback onRejected?: (reason: any).

@cnishina cnishina merged commit ffe96ee into angular:master Aug 5, 2016
@cnishina cnishina deleted the 403_error_types branch August 16, 2016 20:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants