@dxos/app-graph - v0.16.0
    Preparing search index...

    Function createTypeExtension

    • Create an extension that matches nodes by schema type. The entity type is inferred from the schema type and works for both object and relation schemas. Returns an Effect to allow callbacks to access services via dependency injection.

      Type Parameters

      • T extends AnyEntity
      • R = never
      • const Id extends string = string

      Parameters

      Returns Effect<
          Readonly<
              {
                  connector?: Connector<
                      Readonly<
                          {
                              cacheable?: string[];
                              data: any;
                              id: string;
                              properties: Readonly<Record<string, any>>;
                              type: string;
                          },
                      >,
                      NodeArg<any, Record<string, any>>,
                  >;
                  id: string;
                  meta?: UrlBinding;
                  position?: number;
                  relation?: RelationInput;
              },
          >[],
          never,
          R,
      >