2018-08-08 18:21:39 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`internal_slot.js 1`] = `
|
|
|
|
====================================options=====================================
|
2018-12-27 16:05:19 +03:00
|
|
|
parsers: ["flow", "babel"]
|
2018-11-25 11:21:14 +03:00
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2019-10-09 14:52:11 +03:00
|
|
|
declare class C1 { static [[foo]]: T }
|
|
|
|
declare class C2 { [[foo]]: T }
|
|
|
|
interface T1 { [[foo]]: X }
|
|
|
|
interface T2 { [[foo]](): X }
|
|
|
|
type T3 = { [[foo]]: X }
|
|
|
|
type T4 = { [[foo]](): X }
|
|
|
|
type T5 = { [[foo]]?: X }
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2019-10-09 14:52:11 +03:00
|
|
|
declare class C1 {
|
2018-11-10 19:15:18 +03:00
|
|
|
static [[foo]]: T;
|
|
|
|
}
|
2019-10-09 14:52:11 +03:00
|
|
|
declare class C2 {
|
2018-11-10 19:15:18 +03:00
|
|
|
[[foo]]: T;
|
|
|
|
}
|
2019-10-09 14:52:11 +03:00
|
|
|
interface T1 {
|
2018-11-10 19:15:18 +03:00
|
|
|
[[foo]]: X;
|
|
|
|
}
|
2019-10-09 14:52:11 +03:00
|
|
|
interface T2 {
|
2018-11-10 19:15:18 +03:00
|
|
|
[[foo]](): X;
|
|
|
|
}
|
2019-10-09 14:52:11 +03:00
|
|
|
type T3 = { [[foo]]: X };
|
|
|
|
type T4 = { [[foo]](): X };
|
|
|
|
type T5 = { [[foo]]?: X };
|
2018-08-08 18:21:39 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2018-08-08 18:21:39 +03:00
|
|
|
`;
|