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

feat: Add TypeScript definitions #90

Merged

Conversation

tbjers
Copy link
Contributor

@tbjers tbjers commented Oct 10, 2023

New Pull Request Checklist

Issue Description

Related issue: #89
Closes: #89

Approach

TODOs before merging

  • Add changes to documentation (guides, repository pages, in-code descriptions)

@parse-github-assistant
Copy link

I will reformat the title to use the proper commit message syntax.

@parse-github-assistant

This comment was marked as resolved.

@parse-github-assistant parse-github-assistant bot changed the title feat: add typescript definitions feat: Add typescript definitions Oct 10, 2023
@parse-github-assistant
Copy link

parse-github-assistant bot commented Oct 10, 2023

Thanks for opening this pull request!

  • 🎉 We are excited about your hands-on contribution!

@parse-github-assistant

This comment was marked as resolved.

@mtrezza mtrezza changed the title feat: Add typescript definitions feat: Add TypeScript definitions Oct 10, 2023
@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (0f26c11) 100.00% compared to head (a98a43a) 100.00%.

❗ Current head a98a43a differs from pull request most recent head 320ce40. Consider uploading reports for the commit 320ce40 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##           release       #90   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          546       546           
  Branches        47        47           
=========================================
  Hits           546       546           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mtrezza
Copy link
Member

mtrezza commented Oct 10, 2023

Never mind #90 (comment), this repository has the release branch as the working branch, hence the comment.

@tbjers
Copy link
Contributor Author

tbjers commented Oct 10, 2023

I am not sure if there is a need to update the documentation with anything. Thoughts, @mtrezza?

@mtrezza
Copy link
Member

mtrezza commented Oct 10, 2023

Wouldn't the typescript definition files normally be committed with the repository? Or how are generated?

@tbjers
Copy link
Contributor Author

tbjers commented Oct 10, 2023 via email

@mtrezza
Copy link
Member

mtrezza commented Oct 10, 2023

Got it; regarding docs I don't think there's anything that needs to be added. This doesn't contain any breaking changes for developers who are already using the package, correct?

@tbjers
Copy link
Contributor Author

tbjers commented Oct 10, 2023 via email

package.json Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
@mtrezza
Copy link
Member

mtrezza commented Oct 11, 2023

@sadortun could you review this PR please? I wonder whether TS files should be committed to the repo as the IDE will need them?

@sadortun
Copy link

@mtrezza Yes, the file should be added to the repository.

tbjers and others added 2 commits October 11, 2023 20:07
Co-authored-by: Manuel <5673677+mtrezza@users.noreply.github.com>
@tbjers
Copy link
Contributor Author

tbjers commented Oct 12, 2023

@sadortun could you review this PR please? I wonder whether TS files should be committed to the repo as the IDE will need them?

cc: @sadortun The files do not need to be committed to the repository because they will be part of the package tarball as they are generated at the same time as everything else in lib/. My reasoning here is that we do not commit the generated code to the repository, either.

@sadortun
Copy link

@tbjers @mtrezza Ah, I was referring to tsconfig.json in this PR. And you're referring to .d.ts 😂

If .d.ts are generated by the build step, then you don't need them in the repo.

@tbjers tbjers requested a review from mtrezza October 12, 2023 17:17
@mtrezza
Copy link
Member

mtrezza commented Oct 12, 2023

Thanks @sadortun for confirming, and thanks @tbjers for the PR; I'll go ahead and merge.

@mtrezza mtrezza merged commit 9162a9a into parse-community:release Oct 12, 2023
6 checks passed
parseplatformorg pushed a commit that referenced this pull request Oct 12, 2023
# [3.1.0](3.0.0...3.1.0) (2023-10-12)

### Features

* Add TypeScript definitions ([#90](#90)) ([9162a9a](9162a9a))
@parseplatformorg
Copy link

🎉 This pull request has been released in version 3.1.0

@tbjers tbjers deleted the feat/add-typescript-definitions branch October 12, 2023 18:12
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.

Add TypeScript definitions
4 participants