dts-jest
Version:
A preprocessor for Jest to snapshot test TypeScript declaration (.d.ts) files
8 lines (7 loc) • 334 B
TypeScript
import * as jest_snapshot_parser from 'jest-snapshot-parser';
import * as _ts from 'typescript';
export interface RemapOptions {
typescript?: typeof _ts;
source_filename?: string;
}
export declare const remap: (source_content: string, snapshot_content: string | jest_snapshot_parser.Parsed, options?: RemapOptions) => string;