UNPKG

dts-jest

Version:

A preprocessor for Jest to snapshot test TypeScript declaration (.d.ts) files

9 lines (8 loc) 280 B
"use strict"; exports.__esModule = true; exports.traverse_node = function (node, callback, ts) { if (node.kind !== ts.SyntaxKind.SourceFile) { callback(node); } ts.forEachChild(node, function (child) { return exports.traverse_node(child, callback, ts); }); };