2018-05-07 02:57:57 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`import-type.ts 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2018-05-07 02:57:57 +03:00
|
|
|
// ref: https://github.com/Microsoft/TypeScript/pull/22592
|
|
|
|
|
|
|
|
export const x: import("./foo") = { x: 0, y: 0 };
|
|
|
|
|
|
|
|
export let y: import("./foo2").Bar.I = { a: "", b: 0 };
|
|
|
|
|
|
|
|
export let shim: typeof import("./foo2") = {
|
|
|
|
Bar: Bar2
|
|
|
|
};
|
2018-06-11 04:29:10 +03:00
|
|
|
|
|
|
|
export interface Foo {
|
|
|
|
bar: import('immutable').Map<string, int>;
|
|
|
|
}
|
2018-08-07 13:53:11 +03:00
|
|
|
|
|
|
|
type X = A<import("B").C<any>>;
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2018-05-07 02:57:57 +03:00
|
|
|
// ref: https://github.com/Microsoft/TypeScript/pull/22592
|
|
|
|
|
|
|
|
export const x: import("./foo") = { x: 0, y: 0 };
|
|
|
|
|
2018-05-08 07:35:12 +03:00
|
|
|
export let y: import("./foo2").Bar.I = { a: "", b: 0 };
|
2018-05-07 02:57:57 +03:00
|
|
|
|
2018-05-08 07:35:12 +03:00
|
|
|
export let shim: typeof import("./foo2") = {
|
2018-05-07 02:57:57 +03:00
|
|
|
Bar: Bar2
|
|
|
|
};
|
|
|
|
|
2018-06-11 04:29:10 +03:00
|
|
|
export interface Foo {
|
|
|
|
bar: import("immutable").Map<string, int>;
|
|
|
|
}
|
|
|
|
|
2018-08-07 13:53:11 +03:00
|
|
|
type X = A<import("B").C<any>>;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2018-05-07 02:57:57 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`import-type.ts 2`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
singleQuote: true
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2018-05-07 02:57:57 +03:00
|
|
|
// ref: https://github.com/Microsoft/TypeScript/pull/22592
|
|
|
|
|
|
|
|
export const x: import("./foo") = { x: 0, y: 0 };
|
|
|
|
|
|
|
|
export let y: import("./foo2").Bar.I = { a: "", b: 0 };
|
|
|
|
|
|
|
|
export let shim: typeof import("./foo2") = {
|
|
|
|
Bar: Bar2
|
|
|
|
};
|
2018-06-11 04:29:10 +03:00
|
|
|
|
|
|
|
export interface Foo {
|
|
|
|
bar: import('immutable').Map<string, int>;
|
|
|
|
}
|
2018-08-07 13:53:11 +03:00
|
|
|
|
|
|
|
type X = A<import("B").C<any>>;
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2018-05-07 02:57:57 +03:00
|
|
|
// ref: https://github.com/Microsoft/TypeScript/pull/22592
|
|
|
|
|
|
|
|
export const x: import('./foo') = { x: 0, y: 0 };
|
|
|
|
|
2018-05-08 07:35:12 +03:00
|
|
|
export let y: import('./foo2').Bar.I = { a: '', b: 0 };
|
2018-05-07 02:57:57 +03:00
|
|
|
|
2018-05-08 07:35:12 +03:00
|
|
|
export let shim: typeof import('./foo2') = {
|
2018-05-07 02:57:57 +03:00
|
|
|
Bar: Bar2
|
|
|
|
};
|
|
|
|
|
2018-06-11 04:29:10 +03:00
|
|
|
export interface Foo {
|
|
|
|
bar: import('immutable').Map<string, int>;
|
|
|
|
}
|
|
|
|
|
2018-08-07 13:53:11 +03:00
|
|
|
type X = A<import('B').C<any>>;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2018-05-07 02:57:57 +03:00
|
|
|
`;
|