1 | import * as tsm from 'ts-morph';
|
2 |
|
3 | export function isExportedDeclarations(
|
4 | declaration: tsm.Node
|
5 | ): declaration is tsm.ExportedDeclarations {
|
6 | return (
|
7 | tsm.Node.isVariableDeclaration(declaration) ||
|
8 | tsm.Node.isClassDeclaration(declaration) ||
|
9 | tsm.Node.isInterfaceDeclaration(declaration) ||
|
10 | tsm.Node.isEnumDeclaration(declaration) ||
|
11 | tsm.Node.isTypeAliasDeclaration(declaration) ||
|
12 | tsm.Node.isModuleDeclaration(declaration) ||
|
13 | tsm.Node.isExpression(declaration) ||
|
14 | tsm.Node.isFunctionDeclaration(declaration)
|
15 | );
|
16 | }
|