const tokenNodeTypes = [ 'COMPONENT' , 'COMPONENT_SET' , 'RECTANGLE' , 'FRAME' ] ; param SceneNode const isTokenNode = ( node ) : boolean => { return node . parent . type !== 'COMPONENT_SET' && tokenNodeTypes . includes ( node . type ) ; } ; export default isTokenNode ;