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

Updated Cards to v10.291. #2370

Open
wants to merge 3 commits into
base: v10/non-inferring-data-fields
Choose a base branch
from

Conversation

kgar
Copy link

@kgar kgar commented Jun 19, 2023

Closes #1955

kgar added 2 commits June 19, 2023 10:59
…Foundry-Developers/foundry-vtt-types into v10/non-inferring-data-fields_client_data_documents_cards
@kgar kgar requested a review from a team as a code owner June 19, 2023 16:02
Copy link
Collaborator

@kmoschcau kmoschcau left a comment

Choose a reason for hiding this comment

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

Looks good, just a few minor things.

src/foundry/client/data/documents/card.d.ts Show resolved Hide resolved
| ConstructorDataType<foundry.data.CardsData>
| (ConstructorDataType<foundry.data.CardsData> & Record<string, unknown>)
>,
data: Array<ConstructorDataType<CardsData> | (ConstructorDataType<CardsData> & Record<string, unknown>)>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This can probably be simplified even more, by using BaseCards.ConstructorData. We would then either need to introduce a generic parameter on the Cards class for the different system types or leave it open and add a union of all known types as a default to the ConstructorData. I think once we are done, we won't need ConstructorDataType at all anymore.

The same goes for the other occurrences. We can check each time whether it's ConstructorData, UpdateData or Properties.

Copy link
Author

Choose a reason for hiding this comment

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

With that said, should I take further action for this PR?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes please.

…Foundry-Developers/foundry-vtt-types into v10/non-inferring-data-fields_client_data_documents_cards
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