UNPKG

@query-key-gen/generator

Version:

Generated for [Vite](https://vitejs.dev)

26 lines (21 loc) 645 B
import ts from 'typescript'; namespace ExportSpecifierFactory { const factory = ts.factory; const exportDeclaration = (exportSpecifier: ts.NamedExportBindings) => { return factory.createExportDeclaration( undefined, false, exportSpecifier, undefined, undefined ); }; export const named = (name: string) => { return exportDeclaration( factory.createNamedExports([ factory.createExportSpecifier(false, undefined, factory.createIdentifier(name)) ]) ); }; } export { ExportSpecifierFactory };