public static of()

in src/dependency.ts [86:92]


  public static of(instance: IDependable): Dependable {
    const ret = (instance as any)[DEPENDABLE_SYMBOL];
    if (!ret) {
      throw new Error(`${instance} does not implement IDependable. Use "Dependable.implement()" to implement`);
    }
    return ret;
  }