How to use the createNamedExports function from typescript
Find comprehensive JavaScript typescript.createNamedExports code examples handpicked from public code repositorys.
421 422 423 424 425 426 427 428 429 430
? [ // Put an empty export {}; at the bottom to force TypeScript to treat the script as a module ts.createExportDeclaration( undefined, undefined, ts.createNamedExports([]), undefined, undefined ), ]
116
294
29
+ 3 other calls in file
42 43 44 45 46 47 48 49 50 51
return; } // Add the transform operations. const factoryClassName = entryModule.className + 'NgFactory'; const factoryModulePath = normalizedEntryModulePath + '.ngfactory'; const namedExports = ts.createNamedExports([ts.createExportSpecifier(undefined, ts.createIdentifier(factoryClassName))]); const newImport = ts.createExportDeclaration(undefined, undefined, namedExports, ts.createLiteral(factoryModulePath)); const firstNode = ast_helpers_1.getFirstNode(sourceFile); if (firstNode) { ops.push(new interfaces_1.AddNodeOperation(sourceFile, firstNode, newImport));
0
0
1
typescript.SyntaxKind is the most popular function in typescript (82777 examples)