تخطَّ إلى المحتوى

Not Implemented Stub (ARCH3191)

هذا المحتوى غير متوفر بلغتك بعد.

Key typescript.quality.not-implemented-stub · Severity warning · Category quality

throw new Error("not implemented")-style stubs left in shippable code paths cause runtime failures when reached. They must be completed before release.

class PaymentService {
refund(orderId: string): Promise<void> {
throw new Error("not implemented");
}
}
class PaymentService {
async refund(orderId: string): Promise<void> {
await this.gateway.reverse(orderId);
await this.repo.markRefunded(orderId);
}
}

Complete the stub with a real implementation, or remove the member if it is unused.