Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
michellangeveld committed Oct 24, 2023
1 parent 618038b commit f643814
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ export interface BabelProperty extends ESTree.MethodDefinition {
* @param {ESTree.Node} node
* @return {boolean}
*/
function hasLitIdentifier(
node: ESTree.Node | ESTree.Expression | ESTree.SpreadElement
): boolean {
return node?.type === 'Identifier' && node?.name === 'LitElement';
function hasLitIdentifier(node: ESTree.Node): boolean {
return node.type === 'Identifier' && node.name === 'LitElement';
}

/**
Expand Down

0 comments on commit f643814

Please sign in to comment.