@formatjs/ts-transformer 4.0.7 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  export interface MessageDescriptor {
2
- id: string;
3
- description?: string | object;
4
- defaultMessage?: string;
5
- file?: string;
6
- start?: number;
7
- end?: number;
2
+ id: string;
3
+ description?: string | object;
4
+ defaultMessage?: string;
5
+ file?: string;
6
+ start?: number;
7
+ end?: number;
8
8
  }
9
9
  export interface Messages {
10
- [key: string]: MessageDescriptor;
10
+ [key: string]: MessageDescriptor;
11
11
  }
@@ -1,6 +1,6 @@
1
- import type { TsCompilerInstance } from 'ts-jest';
2
- import { SourceFile, TransformerFactory } from 'typescript';
3
- import { Opts } from '.';
1
+ import type { TsCompilerInstance } from "ts-jest";
2
+ import { type SourceFile, type TransformerFactory } from "typescript";
3
+ import { type Opts } from "./index.js";
4
4
  export declare const name = "@formatjs/ts-transformer";
5
5
  export declare const version = "2.10.1";
6
6
  export declare function factory(compilerInstance: TsCompilerInstance, opts: Opts): TransformerFactory<SourceFile>;
@@ -1,6 +1,7 @@
1
- import { transformWithTs } from '.';
2
- export const name = '@formatjs/ts-transformer';
3
- export const version = '2.10.1';
1
+ import "typescript";
2
+ import { transformWithTs } from "./index.js";
3
+ export const name = "@formatjs/ts-transformer";
4
+ export const version = "2.10.1";
4
5
  export function factory(compilerInstance, opts) {
5
- return transformWithTs(compilerInstance.configSet.compilerModule, opts);
6
+ return transformWithTs(compilerInstance.configSet.compilerModule, opts);
6
7
  }