Skip to content

refactor: add missing types - #16

Merged
mdjastrzebski merged 4 commits into
mainfrom
fix/add-missing-exports
Nov 25, 2024
Merged

refactor: add missing types#16
mdjastrzebski merged 4 commits into
mainfrom
fix/add-missing-exports

Conversation

@mdjastrzebski

Copy link
Copy Markdown
Member

Summary

Add missing exports (Middleware, etc).
Also tweaks addReferences naming.

Test plan

const refs = Array.isArray(ref) ? ref : [ref];

for (const ref of refs) {
addReferences(references: DocumentReference[]): void {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It's not only a naming tweak, but also changes logic from handling single reference to only handling arrays.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

afaik we only called it for arrays

@Q1w1N Q1w1N left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Those changes are good, but let's also add more description in changeset about change in logic for adding references

@mdjastrzebski
mdjastrzebski merged commit d8c092c into main Nov 25, 2024
@mdjastrzebski
mdjastrzebski deleted the fix/add-missing-exports branch November 25, 2024 12:48
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