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

NamedStyle

import type { NamedStyle } from "https://googleapis.deno.dev/v1/docs:v1.ts";

A named style. Paragraphs in the document can inherit their TextStyle and ParagraphStyle from this named style when they have the same named style type.

interface NamedStyle {
namedStyleType?:
| "NAMED_STYLE_TYPE_UNSPECIFIED"
| "NORMAL_TEXT"
| "TITLE"
| "SUBTITLE"
| "HEADING_1"
| "HEADING_2"
| "HEADING_3"
| "HEADING_4"
| "HEADING_5"
| "HEADING_6";
paragraphStyle?: ParagraphStyle;
textStyle?: TextStyle;
}

§Properties

§
namedStyleType?: "NAMED_STYLE_TYPE_UNSPECIFIED" | "NORMAL_TEXT" | "TITLE" | "SUBTITLE" | "HEADING_1" | "HEADING_2" | "HEADING_3" | "HEADING_4" | "HEADING_5" | "HEADING_6"
[src]

The type of this named style.

§
paragraphStyle?: ParagraphStyle
[src]

The paragraph style of this named style.

§
textStyle?: TextStyle
[src]

The text style of this named style.