[]previous and next page

RobotsDirectives

The robots directives.

The robots directives. googleBot takes the same directives for Google's crawler; "max-snippet" takes a number (-1 for no limit).

Import#

ts
import type { RobotsDirectives } from "@shadow-js/dusk";

Signature#

ts
interface RobotsDirectives {
  readonly index?: boolean;
  readonly follow?: boolean;
  readonly noarchive?: boolean;
  readonly nosnippet?: boolean;
  readonly noimageindex?: boolean;
  readonly nocache?: boolean;
  readonly notranslate?: boolean;
  readonly indexifembedded?: boolean;
  readonly nositelinkssearchbox?: boolean;
  readonly unavailable_after?: string;
  readonly "max-snippet"?: number;
  readonly "max-image-preview"?: MaxImagePreview;
  readonly "max-video-preview"?: number;
}

Members#

Name Type Description
index? readonly index?: boolean
follow? readonly follow?: boolean
noarchive? readonly noarchive?: boolean
nosnippet? readonly nosnippet?: boolean
noimageindex? readonly noimageindex?: boolean
nocache? readonly nocache?: boolean
notranslate? readonly notranslate?: boolean
indexifembedded? readonly indexifembedded?: boolean
nositelinkssearchbox? readonly nositelinkssearchbox?: boolean
unavailable_after? readonly unavailable_after?: string
max-snippet? readonly "max-snippet"?: number
max-image-preview? readonly "max-image-preview"?: MaxImagePreview
max-video-preview? readonly "max-video-preview"?: number