Ship TypeScript declarations for the public API

Đang mở
#69 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, typescript
Lĩnh vực
developer-experience

Hướng nghiên cứu

Read package.json and inspect the public exports in src/index.js to define declarations for each exported API. Add src/index.d.ts, wire the types field in package.json, and update README.md as needed; verify with the listed npx tsc --noEmit consumer check. Done when every named export has a declaration and the check passes without a runtime change.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement wave

Context

The package exports ESM only and has no type declarations. TypeScript consumers get implicit any for parseContractErrors, analyze, RULES and the baseline functions.

Scope

  • src/index.d.ts
  • package.json
  • README.md

Acceptance criteria

  • index.d.ts declares Finding, ErrorEnum, Variant, the config shape and every export.
  • package.json points types at the file.
  • A tsc --noEmit check passes against a small consumer fixture.
  • There is no runtime change.

Verification

npx tsc --noEmit

Complexity

Medium (3 hours)

Part of Stellar Wave. Comment to claim this issue before starting.

Ngôn ngữ chính
JavaScript
Star
0
Fork
2
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codepacct/codepact-core

Tất cả issue của codepacct/codepact-core

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.