Skip to content

feat: type script definitions - #1094

Merged
SebastianKrupinski merged 1 commit into
mainfrom
feat/typescript-definitions
Sep 22, 2026
Merged

SebastianKrupinski merged 1 commit into
mainfrom
feat/typescript-definitions

Conversation

@SebastianKrupinski

@SebastianKrupinski SebastianKrupinski commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • generate type script definitions from js doc

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@codecov

codecov Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.46154% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/models/calendarTrashBin.js 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@SebastianKrupinski SebastianKrupinski added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Sep 22, 2026
@SebastianKrupinski
SebastianKrupinski marked this pull request as ready for review September 22, 2026 10:15
Comment thread package.json
"@nextcloud/axios": "^2.6.0"
}
},
"types": "./dist/index.d.ts"

@odzhychko odzhychko Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
"types": "./dist/index.d.ts"
"types": "dist/index.d.cts"

To be consistent with "main": dist/index.cjs",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reverted this, applying it breaks type generation. vite-plugin-dts (with rollupTypes: true) reads package.json's types field to decide where to write the rolled-up declaration bundle. Pointing types at dist/index.d.cts makes it target that file directly, and the rollup step silently produces an empty stub (export {}) for a .d.cts target instead of real declarations

@odzhychko odzhychko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Needs https://github.com/nextcloud/cdav-library/pull/1094/changes#r4070835767 for consistency.

Rest works as expected.

Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
@SebastianKrupinski
SebastianKrupinski force-pushed the feat/typescript-definitions branch from ea65114 to dca8a7a Compare September 22, 2026 12:02
@SebastianKrupinski
SebastianKrupinski merged commit 61a03f4 into main Sep 22, 2026
14 checks passed
@SebastianKrupinski
SebastianKrupinski deleted the feat/typescript-definitions branch September 22, 2026 12:03
@github-project-automation github-project-automation Bot moved this from 🏗️ In progress to ☑️ Done in 💌 📅 👥 Groupware team Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

2 participants