tridion-sites-extensions-api-docs

Home > @tridion-sites/extensions > isItemNodeOfType

isItemNodeOfType variable

Checks if an item in a node, given as the first parameter, is an instance of a constructor, provided as the second parameter.

Signature:

isItemNodeOfType: <TItem extends IdentifiableObject>(node: ContentExplorerNode | undefined, ctor: Constructor<TItem>) => node is ContentExplorerItemNode<TItem>