(serviceName: string, prop: string)
| 605 | |
| 606 | |
| 607 | function missingMethod(serviceName: string, prop: string): never { |
| 608 | throw newValidationTypeError( |
| 609 | `capnweb-validate: refused ${serviceName}.${prop}: it is not declared on ` + |
| 610 | `${serviceName}'s RPC interface. To expose it, declare it on the ` + |
| 611 | `interface type and rebuild so the validator regenerates. Note that ` + |
| 612 | `instance properties cannot be accessed over RPC; define a method or ` + |
| 613 | `getter instead.` |
| 614 | ); |
| 615 | } |
| 616 | |
| 617 | function reportValidationFailure(err: unknown): void { |
| 618 | // Warn mode logs the mismatch and lets the value through. Re-throw non-validation errors: those are real bugs. |
no test coverage detected
searching dependent graphs…