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.
Incorrect
Section titled “Incorrect”class PaymentService { refund(orderId: string): Promise<void> { throw new Error("not implemented"); }}Correct
Section titled “Correct”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.