28 lines
807 B
Plaintext
28 lines
807 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`semi.js 1`] = `
|
|
declare module 'foo' {
|
|
function foo(namespace: string): void;
|
|
function bar(namespace: string): void;
|
|
}
|
|
|
|
function pickCard(x: {suit: string; card: number; }[]): number;
|
|
function pickCard(x: number): {suit: string; card: number; };
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
declare module "foo" {
|
|
function foo(namespace: string): void;
|
|
function bar(namespace: string): void;
|
|
}
|
|
|
|
function pickCard(x: { suit: string; card: number }[]): number;
|
|
function pickCard(x: number): { suit: string; card: number };
|
|
|
|
`;
|
|
|
|
exports[`type_literal_optional_method.ts 1`] = `
|
|
var v: { e?(): number };
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
var v: { e?(): number };
|
|
|
|
`;
|