Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(typescript): add 'restore' hooks to types #11730

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

shahbaztariq
Copy link
Contributor

Pull Request check-list

Please make sure to review and check all of these items:

  • Does npm run test or npm run test-DIALECT pass with this change (including linting)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Have you added new tests to prevent regressions?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Did you update the typescript typings accordingly (if applicable)?
  • Did you follow the commit message conventions explained in CONTRIBUTING.md?

Description of change

The hooks.d.ts file is missing the restore hooks (beforeRestore, afterRestore and so on). This PR adds missing restore hook definitions to the hooks.d.ts file.

@codecov
Copy link

codecov bot commented Dec 5, 2019

Codecov Report

Merging #11730 into master will increase coverage by 0.42%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11730      +/-   ##
==========================================
+ Coverage   95.83%   96.26%   +0.42%     
==========================================
  Files          91       94       +3     
  Lines        8987     9190     +203     
==========================================
+ Hits         8613     8847     +234     
+ Misses        374      343      -31
Impacted Files Coverage Δ
lib/dialects/mariadb/index.js 100% <0%> (ø)
lib/dialects/mariadb/connection-manager.js 100% <0%> (ø)
lib/dialects/mariadb/query.js 87.96% <0%> (ø)
lib/sequelize.js 95.93% <0%> (+0.62%) ⬆️
lib/dialects/postgres/connection-manager.js 95.77% <0%> (+1.4%) ⬆️
lib/query-interface.js 92.19% <0%> (+1.46%) ⬆️
lib/dialects/mariadb/data-types.js 100% <0%> (+49.01%) ⬆️
lib/dialects/mariadb/query-generator.js 100% <0%> (+85.71%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update beeff96...a91f274. Read the comment docs.

@sushantdhiman sushantdhiman merged commit eccf973 into sequelize:master Dec 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants