2017-05-07 17:39:21 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`index-signature.ts 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
semi: false
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-06-04 17:21:33 +03:00
|
|
|
class LocalStorage implements Storage {
|
|
|
|
[index: number]: string;
|
|
|
|
[key: string]: any;
|
|
|
|
}
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-06-04 17:21:33 +03:00
|
|
|
class LocalStorage implements Storage {
|
|
|
|
[index: number]: string
|
|
|
|
[key: string]: any
|
|
|
|
}
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-06-04 17:21:33 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`interface.ts 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
semi: false
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-05-07 17:39:21 +03:00
|
|
|
interface Inline { x: string }
|
|
|
|
|
|
|
|
interface MultiLine {
|
|
|
|
x: string;
|
|
|
|
y: string;
|
|
|
|
}
|
2017-06-03 15:18:59 +03:00
|
|
|
|
|
|
|
interface InlineMultiple { x: string; y: string }
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-06-16 03:34:54 +03:00
|
|
|
interface Inline {
|
|
|
|
x: string
|
|
|
|
}
|
2017-05-07 17:39:21 +03:00
|
|
|
|
|
|
|
interface MultiLine {
|
|
|
|
x: string
|
|
|
|
y: string
|
|
|
|
}
|
|
|
|
|
2017-06-16 03:34:54 +03:00
|
|
|
interface InlineMultiple {
|
|
|
|
x: string
|
|
|
|
y: string
|
|
|
|
}
|
2017-06-03 15:18:59 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-06-03 15:18:59 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`type.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
semi: false
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-06-03 15:18:59 +03:00
|
|
|
type A = {disabled?: boolean, error?: string}
|
2017-06-08 21:47:49 +03:00
|
|
|
|
|
|
|
const foo: {aasdf?: string; asdf?: number; foob?: string; zzz?: string; yyy: string} = {}
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-06-03 15:18:59 +03:00
|
|
|
type A = { disabled?: boolean; error?: string }
|
|
|
|
|
2017-06-08 21:47:49 +03:00
|
|
|
const foo: {
|
|
|
|
aasdf?: string
|
|
|
|
asdf?: number
|
|
|
|
foob?: string
|
|
|
|
zzz?: string
|
|
|
|
yyy: string
|
|
|
|
} = {}
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-05-07 17:39:21 +03:00
|
|
|
`;
|