Implement legacy TypeScript decorators and metadata with native NestJS acceptance
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/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ệ
- node.js, typescript
Hướng nghiên cứu
Start by reading issue #238 and the compiler’s decorator lowering and metadata paths; the payload does not name specific files or tests. Compare emitted behavior against TypeScript output under the pinned Node oracle, then run the differential, NestJS, and plain and sanitized acceptance gates. Done means the listed decorator and metadata cases pass, the real NestJS example builds and runs natively, and unaffected programs retain zero-cost validation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Existing NestJS applications use TypeScript's legacy decorator semantics (experimentalDecorators) and emitted design-type metadata. scriptc currently adopts neither option and supports only a restricted subset of newer class decorators. Issue #238 reports the resulting constructor-parameter decorator refusal.
Implement a coherent legacy decorator pipeline that preserves the original TypeScript checks and lowers decorations to existing native calls, objects, and property descriptors. Keep the current newer-decorator behavior intact and avoid changing code generation for programs that do not use legacy decorators.
Acceptance:
- Class, property, method, accessor, constructor-parameter, and method-parameter decorators, including static members, factories, generic standard decorator signatures, descriptor changes, and permitted replacements.
- TypeScript-compatible expression evaluation, application, static-initialization, inheritance, and class-binding behavior.
emitDecoratorMetadatadesign types, parameter types, and return types, including imported runtime types, erased types, type-only imports, and forward-reference behavior.- Actual
reflect-metadatapackage execution with stable constructor/prototype/method identity and own/inherited lookup behavior. - A pinned real NestJS example that builds to native code and exercises dependency injection, an HTTP success response, a missing route, and clean shutdown. Do not substitute framework stubs or Node-island execution.
- Differential tests using TypeScript-emitted JavaScript under the pinned Node oracle, diagnostic and module-order baselines, per-program CI costs, zero-cost validation for unaffected programs, and the repository's plain and sanitized gates.
This is the implementation and acceptance work associated with #238; retain precise limitations wherever the surrounding native object model still requires an explicit diagnostic.
- Ngôn ngữ chính
- TypeScript
- Star
- 6.7k
- Fork
- 229
- Merge trung bình
- 14 giờ 29 phút
- Pull request đã merge (30 ngày)
- 787
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của vercel-labs/scriptc
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
vercel-labs/scriptc#4865 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
vercel-labs/scriptc#4864 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Windows ARM64 as a cross-compile targetCó thể đã có người làm @hum-n đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
vercel-labs/scriptc#4858 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
post-merge-bisect-unresolved
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 43/100
vercel-labs/scriptc#4791 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
post-merge-bisect-unconfirmed
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
vercel-labs/scriptc#4755 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của vercel-labs/scriptc
Issue tương tự
-
bug data-types
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
ClickHouse/clickhouse-js#1293 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: middleware enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
agent/quality testing
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
juspay/agent-distro#203 ·
Maintainer thường phản hồi trong vòng 1 ngày