Skip to content

refactor: rename declarations to types in JsInfo & throughout rules_js#1619

Merged
gregmagolan merged 1 commit into
2.xfrom
rjs2_types
Apr 9, 2024
Merged

refactor: rename declarations to types in JsInfo & throughout rules_js#1619
gregmagolan merged 1 commit into
2.xfrom
rjs2_types

Conversation

@gregmagolan

@gregmagolan gregmagolan commented Apr 7, 2024

Copy link
Copy Markdown
Member

declarations are a subset of types. For example, we include all .json files in "declarations" currently since typescript can resolve types from JSON files and may need package.json "types" field to resolve typings.

elif file.path.endswith(".json"):

@gregmagolan gregmagolan requested review from alexeagle and jbedard April 9, 2024 17:11
@gregmagolan gregmagolan marked this pull request as ready for review April 9, 2024 17:11
@alexeagle

Copy link
Copy Markdown
Contributor

SGTM, "declarations" was indeed a subset of typings.

@gregmagolan gregmagolan merged commit 26afad4 into 2.x Apr 9, 2024
@gregmagolan gregmagolan deleted the rjs2_types branch April 9, 2024 18:26
@gregmagolan gregmagolan mentioned this pull request Apr 29, 2024
21 tasks
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