import * as ts from "typescript" ; export function isValidSelection ( selectedNode ) { const kind = ts . SyntaxKind [ selectedNode . kind ] ; return ( kind . includes ( "Expression" ) || kind . includes ( "Literal" ) || kind . includes ( "Identifier" ) || kind . includes ( "Keyword" ) ) ; }