Add semi for ts function declarations without body (#1911)

Fixes #1891
This commit is contained in:
Christopher Chedeau authored and GitHub committed 2017-06-02 14:49:37 -07:00
1 parent 6933d16125
commit e58dd2bf0b
4 files changed
+21 -1

No files matched your search

@@ -1,5 +1,18 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`semi.js 1`] = `
declare module 'foo' {
function foo(namespace: string): void;
function bar(namespace: string): void;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
declare module "foo" {
function foo(namespace: string): void;
function bar(namespace: string): void;
}
`;
exports[`type_literal_optional_method.ts 1`] = `
var v: { e?(): number };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+4
View File
@@ -0,0 +1,4 @@
declare module 'foo' {
function foo(namespace: string): void;
function bar(namespace: string): void;
}