Skip to content

v1.0.1

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Nov 13:58
862e2c3
  • Add the Infer.Entry and Infer.ListItem types which can be used to infer the
    type of an entry or list item from a query.

    type Entry = Infer.Entry<typeof EntryType>
    const entry: Entry = await cms.get({type: MyType})
    type ListItem = Infer.ListItem<typeof ListType>
    const list: Array<ListItem> = await cms.get({select: MyType.list})