69 lines
1.1 KiB
Plaintext
69 lines
1.1 KiB
Plaintext
![]() |
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||
|
|
||
|
exports[`test.js 1`] = `
|
||
|
"type Banana = {
|
||
|
eat: string => boolean,
|
||
|
};
|
||
|
|
||
|
type Hex = {n: 0x01};
|
||
|
|
||
|
type T = { method: (a) => void };
|
||
|
|
||
|
type T = { method(a): void };
|
||
|
|
||
|
declare class X { method(a): void }
|
||
|
|
||
|
declare function f(a): void;
|
||
|
|
||
|
var f: (a) => void;
|
||
|
|
||
|
interface F { m(string): number }
|
||
|
|
||
|
interface F { m: (string) => number }
|
||
|
|
||
|
function f(o: { f: (string) => void }) {}
|
||
|
|
||
|
function f(o: { f(string): void }) {}
|
||
|
|
||
|
type f = (...arg) => void;
|
||
|
|
||
|
type f = (/* comment */ arg) => void;
|
||
|
|
||
|
type f = (arg /* comment */) => void;
|
||
|
|
||
|
type f = (?arg) => void;
|
||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
type Banana = {
|
||
|
eat: string => boolean
|
||
|
};
|
||
|
|
||
|
type Hex = { n: 0x01 };
|
||
|
|
||
|
type T = { method: a => void };
|
||
|
|
||
|
type T = { method(a): void };
|
||
|
|
||
|
declare class X { method(a): void }
|
||
|
|
||
|
declare function f(a): void;
|
||
|
|
||
|
var f: a => void;
|
||
|
|
||
|
interface F { m(string): number }
|
||
|
|
||
|
interface F { m: string => number }
|
||
|
|
||
|
function f(o: { f: string => void }) {}
|
||
|
|
||
|
function f(o: { f(string): void }) {}
|
||
|
|
||
|
type f = (...arg) => void;
|
||
|
|
||
|
type f = /* comment */ arg => void;
|
||
|
|
||
|
type f = arg /* comment */ => void;
|
||
|
|
||
|
type f = ?arg => void;
|
||
|
"
|
||
|
`;
|