Skip to Content
Grist Widgets

Types

Index of every TypeScript type `grist-widget-sdk` exports, organized by area.

Every type exported from grist-widget-sdk. Grouped by area. Each table below is generated from the real exported type in packages/core/src/sdk — see useGrist for the full UseGristResult field enumeration.

Core results

Prop

Type

GristRowRecord<T = Record<string, unknown>> defaults its generic to a plain record — T itself only shows once you pass a concrete row type.

Prop

Type

Prop

Type

Prop

Type

Prop

Type

Prop

Type

Prop

Type

Provider / hook options

Prop

Type

Prop

Type

UseGristOptions is GristReadyOptions plus requiredLinking, suppressAlerts, schema, optionsVersion and migrate; see useGrist.

Prop

Type

Result types

UseGristResult<TRow, TMapped> is the return type of useGrist() — see that page for the full, per-member table (connection, selection and mapping, reads, writes, options, linking, attachments and REST).

Prop

Type

Linking

Prop

Type

Writes

Prop

Type

Prop

Type

Prop

Type

Reads

Prop

Type

Attachments / REST

Prop

Type

Prop

Type

Replica document

See /design/replica-document for full discussion.

Prop

Type

Prop

Type

Prop

Type

Prop

Type

Prop

Type

Typed reads

Prop

Type

GristWidgetRow<typeof widget> is the mapped record a declaration gives, and StandardSchema the validator UseGristOptions.schema takes: see Typed reads.

Demo data

Prop

Type

A widget's src/app/demo.ts exports one as demo: create-grist-widget demo opens it in a real Grist, in place of sample rows.

Component props

Prop

Type

Prop

Type

See <GristWidgetProvider> and <GristBoundary> for what each one does and shows.

On this page