/**
 * Checks node to be PageNode
 */ export const isPageNode = ( node ) : node is PageNode => { return node . type === 'PAGE' ; } ; /**
 * Checks node to be GroupNode
 */ export const isGroupNode = ( node ) : node is GroupNode => { return node . type === 'GROUP' ; } ; /**
 * Checks node to be FrameNode
 */ export const isFrameNode = ( node ) : node is FrameNode => { return node . type === 'FRAME' ; } ; /**
 * Checks node to be TextNode
 */ export const isTextNode = ( node ) : node is TextNode => { return node . type === 'TEXT' ; } ; /**
 * Checks node to be InstanceNode
 */ export const isInstanceNode = ( node ) : node is InstanceNode => { return node . type === 'INSTANCE' ; } ; /**
 * Checks node to be ComponentNode
 */ export const isComponentNode = ( node ) : node is ComponentNode => { return node . type === 'COMPONENT' ; } ; /**
 * Checks node to be one of provided types
 */ export const isOneOfNodeType = ( node , typeList ) => { return typeList . includes ( node . type ) ; } ;