Trails Packages
    Preparing search index...

    Variable DECLARE_SERVICE_INTERFACEConst

    DECLARE_SERVICE_INTERFACE: typeof DECLARE_SERVICE_INTERFACE = ...

    Helper symbol to declare a service's interface name when not using a separate interface.

    NOTE: This symbol does not exist at runtime. Declaring a service interface is compile time only! It should therefore be imported via import type (see example below).

    import { 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.");
    }
    }