21 lines
531 B
Plaintext
21 lines
531 B
Plaintext
exports[`test test.js 1`] = `
|
|
"function foo(x: Array<Object>): Array<Object> {
|
|
return x.sort((a, b) => a.foo - b.foo);
|
|
}
|
|
|
|
// Make sure Object works with Object.keys()
|
|
function bar(x: Object): Array<string> {
|
|
return Object.keys(x);
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
function foo(x: Array<Object>): Array<Object> {
|
|
return x.sort((a, b) => a.foo - b.foo);
|
|
}
|
|
|
|
// Make sure Object works with Object.keys()
|
|
function bar(x: Object): Array<string> {
|
|
return Object.keys(x);
|
|
}
|
|
"
|
|
`;
|