tina.io icon indicating copy to clipboard operation
tina.io copied to clipboard

Blocks editing example uses outdated type

Open novellac opened this issue 10 months ago • 0 comments

Context

A user with a new install of Tina who is following the example code in the docs to implement Blocks editing.

Issue

importing TinaTemplate type gives TypeScript warnings about the type having been deprecated.

Possible fix

On the blocks.md page:

  • replace import type { TinaTemplate } from 'tinacms' with import type { Template } from 'tinacms'
  • replace subsequent uses of TinaTemplate in the code block with Template

How to test

On a new install of Tina, importing Template should not result in any TypeScript warnings.

novellac avatar Apr 20 '24 11:04 novellac