contentful.js
contentful.js copied to clipboard
Invalid typescript in TYPESCRIPT.md
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.