Constimport { type DECLARE_SERVICE_INTERFACE} from "@open-pioneer/runtime";
class MyServiceImpl {
// Add this line to your class.
// It declares (at compile time) that the service class must be used via the given interface name.
// Note that the property is not really present at runtime.
declare [DECLARE_SERVICE_INTERFACE]: "my-package.MyInterface";
method(): void {
throw new Error("Method not implemented.");
}
}
Helper symbol to declare a service's interface name when not using a separate interface.