contentful.js icon indicating copy to clipboard operation
contentful.js copied to clipboard

Invalid typescript in TYPESCRIPT.md

Open jacobdo2 opened this issue 2 years ago • 0 comments

The following example in v10-beta TYPESCRIPT docs is invalid:

const Fields = { productName: Contentful.EntryFields.Text }

if you declare it as a const, it will give an 'Contentful' only refers to a type, but is being used as a value here. It is the case with all the other examples of this kind in the docs.

jacobdo2 avatar Aug 30 '22 13:08 jacobdo2