dts-jest
Version:
A preprocessor for Jest to snapshot test TypeScript declaration (.d.ts) files
9 lines (8 loc) • 381 B
TypeScript
import * as jest_snapshot_parser from 'jest-snapshot-parser';
import * as _ts from 'typescript';
import { Parsed } from 'jest-snapshot-parser';
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;