Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TextSpan

import type { TextSpan } from "https://googleapis.deno.dev/v1/language:v2.ts";

Represents a text span in the input document.

interface TextSpan {
beginOffset?: number;
content?: string;
}

§Properties

§
beginOffset?: number
[src]

The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request.

§
content?: string
[src]

The content of the text span, which is a substring of the document.