tina.io
tina.io copied to clipboard
Blocks editing example uses outdated type
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
- replace
import type { TinaTemplate } from 'tinacms'
withimport type { Template } from 'tinacms'
- replace subsequent uses of
TinaTemplate
in the code block withTemplate
How to test
On a new install of Tina, importing Template
should not result in any TypeScript warnings.