Skip to content

fix(typings): Add getDatabaseName type - #11614

Merged
sushantdhiman merged 1 commit into
sequelize:masterfrom
stackbuilders:add-get-db-name-types
Oct 28, 2019
Merged

sushantdhiman merged 1 commit into
sequelize:masterfrom
stackbuilders:add-get-db-name-types

Conversation

@ibarrae

@ibarrae ibarrae commented Oct 25, 2019 •

Copy link
Copy Markdown
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

Add getDatabaseName function type in Sequelize class type. Closes #11431

@codecov

codecov Bot commented Oct 25, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #11614 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #11614   +/-   ##
=======================================
  Coverage   96.26%   96.26%           
=======================================
  Files          94       94           
  Lines        9190     9190           
=======================================
  Hits         8847     8847           
  Misses        343      343

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 c77c553...3b76fe0. Read the comment docs.

Comment thread types/lib/sequelize.d.ts
/**
* Returns the database name.
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you rm the newline here pls?

@papb

papb commented Oct 27, 2019

Copy link
Copy Markdown
Member

Hello! I see you are a first-time contributor, thank you for taking the time to help Sequelize! I hope to see more PRs from you in the future!

@papb papb added status: awaiting response For issues and PRs. OP must respond (or change something, if it is a PR). Maintainers have no action typescript For issues and PRs. Things that involve typescript, such as typings and intellisense. labels Oct 27, 2019
@sushantdhiman
sushantdhiman merged commit 1e1196d into sequelize:master Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: awaiting response For issues and PRs. OP must respond (or change something, if it is a PR). Maintainers have no action typescript For issues and PRs. Things that involve typescript, such as typings and intellisense.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Property 'getDatabaseName' does not exist on type 'Sequelize'.

4 participants