Sanity Library Reference Docs
    Preparing search index...
    • Validate and return an effect declaration — the registry model: name is the effect's only identity; the host app registers a handler against it.

      Parameters

      • effect: {
            bindings?: { [key: string]: string };
            description?: string;
            input?: { [key: string]: unknown };
            name: string;
            outputs?: FieldShape[];
            title?: string;
        }

      Returns {
          bindings?: { [key: string]: string };
          description?: string;
          input?: { [key: string]: unknown };
          name: string;
          outputs?: FieldShape[];
          title?: string;
      }