UNPKG

compatfactory

Version:

A library that unifies the TypeScript Compiler API factory functions across all versions of TypeScript and makes them conform with the Node Factory API

6 lines (3 loc) 159 B
import * as TS from 'typescript'; declare function ensureNodeFactory(factoryLike: TS.NodeFactory | typeof TS): TS.NodeFactory; export { ensureNodeFactory };