How to use the isModuleDeclaration function from typescript

Find comprehensive JavaScript typescript.isModuleDeclaration code examples handpicked from public code repositorys.

162
163
164
165
166
167
168
169
170
171
ts.isExportDeclaration(s) ||
ts.isExportAssignment(s) ||
// as well as many declarations
ts.isTypeAliasDeclaration(s) ||
ts.isInterfaceDeclaration(s) ||
ts.isModuleDeclaration(s) ||
ts.isEnumDeclaration(s) ||
(isGlobal && (
    // in global scripts we don't wrap classes and functions so they can be accessed from non-global scripts
    ts.isClassDeclaration(s) ||
fork icon116
star icon294
watch icon29

Other functions in typescript

Sorted by popularity

function icon

typescript.SyntaxKind is the most popular function in typescript (82777 examples)