prettier/tests/typescript_nosemi/__snapshots__/jsfmt.spec.js.snap

82 lines
2.2 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`index-signature.ts 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
semi: false
| printWidth
=====================================input======================================
class LocalStorage implements Storage {
[index: number]: string;
[key: string]: any;
}
=====================================output=====================================
class LocalStorage implements Storage {
[index: number]: string
[key: string]: any
}
================================================================================
`;
exports[`interface.ts 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
semi: false
| printWidth
=====================================input======================================
interface Inline { x: string }
interface MultiLine {
x: string;
y: string;
}
interface InlineMultiple { x: string; y: string }
=====================================output=====================================
interface Inline {
x: string
}
interface MultiLine {
x: string
y: string
}
interface InlineMultiple {
x: string
y: string
}
================================================================================
`;
exports[`type.js 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
semi: false
| printWidth
=====================================input======================================
type A = {disabled?: boolean, error?: string}
const foo: {aasdf?: string; asdf?: number; foob?: string; zzz?: string; yyy: string} = {}
=====================================output=====================================
type A = { disabled?: boolean; error?: string }
const foo: {
aasdf?: string
asdf?: number
foob?: string
zzz?: string
yyy: string
} = {}
================================================================================
`;