Remove old expected.{js,json} files (#7187)
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
const x = (foo
|
||||
/*:: ?*/
|
||||
) => {};
|
||||
@@ -1,3 +0,0 @@
|
||||
const x = (foo
|
||||
/*: string*/
|
||||
) => {};
|
||||
@@ -1,5 +0,0 @@
|
||||
class X {
|
||||
/*:: a: number*/
|
||||
|
||||
/*:: b: ?string*/
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
class X {
|
||||
constructor() {
|
||||
this.a = 2;
|
||||
this.b = '3';
|
||||
this.c = void 0;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
class X {
|
||||
foo = 2;
|
||||
bar
|
||||
/*: number*/
|
||||
= 3;
|
||||
/*:: baz: ?string*/
|
||||
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*:: declare var foo*/
|
||||
|
||||
/*:: declare var foo;*/
|
||||
|
||||
/*:: declare function foo(): void*/
|
||||
|
||||
/*:: declare function foo(): void;*/
|
||||
|
||||
/*:: declare function foo<T>(): void;*/
|
||||
|
||||
/*:: declare function foo(x: number, y: string): void;*/
|
||||
|
||||
/*:: declare class A {}*/
|
||||
|
||||
/*:: declare class A<T> extends B<T> { x: number }*/
|
||||
|
||||
/*:: declare class A { static foo(): number, static x : string }*/
|
||||
|
||||
/*:: declare class A { static [ indexer: number]: string }*/
|
||||
|
||||
/*:: declare class A { static () : number }*/
|
||||
|
||||
/*:: declare class A mixins B<T>, C {}*/
|
||||
|
||||
/*:: declare type A = string*/
|
||||
|
||||
/*:: declare type T<U> = { [k:string]: U }*/
|
||||
|
||||
/*:: declare interface I { foo: string }*/
|
||||
|
||||
/*:: declare interface I<T> { foo: T }*/
|
||||
@@ -1,8 +0,0 @@
|
||||
class C
|
||||
/*:: <+T, -U>*/
|
||||
{}
|
||||
|
||||
function f
|
||||
/*:: <+T, -U>*/
|
||||
() {}
|
||||
/*:: type T<+T, -U> = {};*/
|
||||
@@ -1,23 +0,0 @@
|
||||
function foo(numVal
|
||||
/*:: ?*/
|
||||
) {}
|
||||
|
||||
function foo(numVal
|
||||
/*:: ?*/
|
||||
= 2) {}
|
||||
|
||||
function foo(numVal
|
||||
/*: number*/
|
||||
) {}
|
||||
|
||||
function foo(numVal
|
||||
/*:: ?: number*/
|
||||
) {}
|
||||
|
||||
function foo(numVal
|
||||
/*: number*/
|
||||
= 2) {}
|
||||
|
||||
function foo(numVal
|
||||
/*:: ?: number*/
|
||||
= 2) {}
|
||||
@@ -1,13 +0,0 @@
|
||||
/*:: export type GraphQLFormattedError = number;*/
|
||||
|
||||
/*:: export type GraphQLFormattedError = {
|
||||
message: string,
|
||||
locations?: Array<{
|
||||
line: number,
|
||||
column: number
|
||||
}>
|
||||
};*/
|
||||
|
||||
/*:: export interface foo { p: number }*/
|
||||
|
||||
/*:: export interface foo<T> { p: T }*/
|
||||
@@ -1,4 +0,0 @@
|
||||
/*:: export type { A } from './types';*/
|
||||
import lib from 'library';
|
||||
export { foo } from 'foo';
|
||||
/*:: export type { B, C } from './types';*/
|
||||
@@ -1,5 +0,0 @@
|
||||
/*:: import type A, { B, C } from './types';*/
|
||||
import lib from 'library';
|
||||
/*:: import type D from './types';*/
|
||||
|
||||
/*:: import typeof E, { F, G } from './types';*/
|
||||
@@ -1,10 +0,0 @@
|
||||
// @flow
|
||||
var obj = {
|
||||
method: function (a
|
||||
/*: string*/
|
||||
)
|
||||
/*: number*/
|
||||
{
|
||||
return 5 + 5;
|
||||
}
|
||||
};
|
||||
@@ -1,16 +0,0 @@
|
||||
function a() {}
|
||||
/*:: opaque type A = number;*/
|
||||
|
||||
/*:: opaque type B = {
|
||||
name: string;
|
||||
};*/
|
||||
|
||||
/*:: opaque type union =
|
||||
| {type: "A"}
|
||||
| {type: "B"}
|
||||
;*/
|
||||
|
||||
/*:: opaque type overloads =
|
||||
& ((x: string) => number)
|
||||
& ((x: number) => string)
|
||||
;*/
|
||||
@@ -1,3 +0,0 @@
|
||||
function multiply(num
|
||||
/*:: ?: number*/
|
||||
) {}
|
||||
@@ -1,7 +0,0 @@
|
||||
function foo(bar
|
||||
/*:: ?*/
|
||||
) {}
|
||||
|
||||
function foo2(bar
|
||||
/*:: ?: string*/
|
||||
) {}
|
||||
@@ -1,18 +0,0 @@
|
||||
// @flow
|
||||
var C =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
function C() {}
|
||||
|
||||
var _proto = C.prototype;
|
||||
|
||||
_proto.m = function m(x
|
||||
/*: number*/
|
||||
)
|
||||
/*: string*/
|
||||
{
|
||||
return 'a';
|
||||
};
|
||||
|
||||
return C;
|
||||
}();
|
||||
@@ -1,20 +0,0 @@
|
||||
// @flow
|
||||
var C =
|
||||
/*#__PURE__*/
|
||||
function () {
|
||||
function C() {
|
||||
babelHelpers.classCallCheck(this, C);
|
||||
}
|
||||
|
||||
babelHelpers.createClass(C, [{
|
||||
key: "m",
|
||||
value: function m(x
|
||||
/*: number*/
|
||||
)
|
||||
/*: string*/
|
||||
{
|
||||
return 'a';
|
||||
}
|
||||
}]);
|
||||
return C;
|
||||
}();
|
||||
@@ -1,8 +0,0 @@
|
||||
/*:: type T = /*test*-/ number;*/
|
||||
|
||||
/*:: type T2 = /* *-ESCAPED/ *-/ number;*/
|
||||
|
||||
/*:: type CustomType = {
|
||||
/** This is some documentation. *-/
|
||||
name: string;
|
||||
};*/
|
||||
@@ -1,16 +0,0 @@
|
||||
function a() {}
|
||||
/*:: type A = number;*/
|
||||
|
||||
/*:: type B = {
|
||||
name: string;
|
||||
};*/
|
||||
|
||||
/*:: type union =
|
||||
| {type: "A"}
|
||||
| {type: "B"}
|
||||
;*/
|
||||
|
||||
/*:: type overloads =
|
||||
& ((x: string) => number)
|
||||
& ((x: number) => string)
|
||||
;*/
|
||||
@@ -1,8 +0,0 @@
|
||||
var a = (y
|
||||
/*: any*/
|
||||
);
|
||||
var a = ((y
|
||||
/*: foo*/
|
||||
)
|
||||
/*: any*/
|
||||
);
|
||||
@@ -1,5 +0,0 @@
|
||||
function foo(x
|
||||
/*: number*/
|
||||
)
|
||||
/*: string*/
|
||||
{}
|
||||
Reference in New Issue
Block a user