Created
August 20, 2020 13:02
-
-
Save roytouw7/d0cfba07d27220a1e4e6b5dee09f2dca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const isObjectOrSubjectConstructor: Classifier = classifierTemplate((node) => { | |
if (ts.isNewExpression(node) && ts.isIdentifier(node.expression)) { | |
if ([...rxjsObjectKinds, ...rxjsSubjectKinds].some(operator => operator === node.expression.getText())) { | |
return true; | |
} | |
} | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment