Sanity Library Reference Docs
    Preparing search index...

    Interface TranslateTargetIncludeBeta

    interface TranslateTargetInclude {
        path: AgentActionPathSegment | AgentActionPath;
        exclude?: AgentActionPathSegment[];
        types?: AgentActionTypeConfig;
        styleGuide?: string;
        include?: (AgentActionPathSegment | TranslateTargetInclude)[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    By default, all children up to target.maxPathDepth are included. Fields or array items not on the exclude list, are implicitly included.

    Types can be used to exclude array item types or all fields directly under the target path of a certain type. If you do exclude: ['string'] all string fields under the target will be excluded, for instance.

    types.include and types.exclude are mutually exclusive.

    styleGuide?: string

    String template using $variable from styleGuideParams.

    By default, all children up to target.maxPathDepth are included.

    When include is specified, only segments explicitly listed will be included.

    Fields or array items not on the include list, are implicitly excluded.