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

Ship own types (copy from DT) #380

Merged
merged 10 commits into from May 15, 2023

Conversation

NullVoxPopuli
Copy link
Sponsor Contributor

Copies the types and type-tests from DT, here: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ember__string

This PR enables folks using ember-source@v5 to use the built-in types and not have to install @types/ember__string
prior to ember-source@v5, the types for ember-string were here: https://github.com/emberjs/ember.js/blob/v4.12.0/types/preview/%40ember/string/index.d.ts

but ember-source@v5 removed @ember/string, per deprecation plan.

@@ -84,7 +86,7 @@
"release-it": "^14.11.6",
"release-it-lerna-changelog": "^3.1.0",
"rimraf": "^3.0.2",
"typescript": "^4.4.4",
"typescript": "^5.0.4",
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

looks like this didn't change -- I didn't even check if this project already had TS available 😅

Copy link
Contributor

@chriskrycho chriskrycho left a comment

Choose a reason for hiding this comment

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

Thank you! This needs a couple small tweaks, but 👍🏼 overall and the effort is much appreciated.

.github/workflows/ci-build.yml Outdated Show resolved Hide resolved
type-tests/the-tests.ts Outdated Show resolved Hide resolved
@chriskrycho chriskrycho merged commit b1ffc56 into emberjs:master May 15, 2023
15 checks passed
@NullVoxPopuli NullVoxPopuli deleted the add-types-from-dt branch May 15, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants