2017-02-22 00:59:19 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`main.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
// @flow
|
2016-12-23 22:31:38 +03:00
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
import declare_module_exports from "declare_module_exports";
|
2016-12-23 22:31:38 +03:00
|
|
|
(declare_module_exports: number);
|
|
|
|
(declare_module_exports: string); // Error: number ~> string
|
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
// Error: Has no named export "str"!
|
|
|
|
import {str} from "declare_m_e_with_other_value_declares";
|
2016-12-23 22:31:38 +03:00
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
import type {str2} from "declare_m_e_with_other_type_declares";
|
|
|
|
("asdf": str2);
|
2016-12-23 22:31:38 +03:00
|
|
|
(42: str2); // Error: number ~> string
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \`declare var exports\` is deprecated, so we have a grace period where both
|
|
|
|
* syntaxes will work.
|
|
|
|
*/
|
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
import DEPRECATED__declare_var_exports from "DEPRECATED__declare_var_exports";
|
2016-12-23 22:31:38 +03:00
|
|
|
(DEPRECATED__declare_var_exports: number);
|
|
|
|
(DEPRECATED__declare_var_exports: string); // Error: number ~> string
|
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
import declare_m_e_with_declare_var_e from "declare_m_e_with_declare_var_e";
|
2016-12-23 22:31:38 +03:00
|
|
|
(declare_m_e_with_declare_var_e: number);
|
|
|
|
(declare_m_e_with_declare_var_e: string); // Error: number ~> string
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
// @flow
|
2017-01-10 05:49:06 +03:00
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
import declare_module_exports from "declare_module_exports";
|
2016-12-27 21:29:31 +03:00
|
|
|
(declare_module_exports: number);
|
2017-01-26 22:57:43 +03:00
|
|
|
(declare_module_exports: string); // Error: number ~> string
|
2017-01-31 19:27:44 +03:00
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
// Error: Has no named export "str"!
|
|
|
|
import { str } from "declare_m_e_with_other_value_declares";
|
2017-01-10 05:49:06 +03:00
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
import type { str2 } from "declare_m_e_with_other_type_declares";
|
|
|
|
("asdf": str2);
|
2017-01-26 22:57:43 +03:00
|
|
|
(42: str2); // Error: number ~> string
|
2017-01-31 19:27:44 +03:00
|
|
|
|
2017-01-10 05:49:06 +03:00
|
|
|
/**
|
|
|
|
* \`declare var exports\` is deprecated, so we have a grace period where both
|
|
|
|
* syntaxes will work.
|
|
|
|
*/
|
2017-01-27 22:05:41 +03:00
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
import DEPRECATED__declare_var_exports from "DEPRECATED__declare_var_exports";
|
2016-12-23 22:31:38 +03:00
|
|
|
(DEPRECATED__declare_var_exports: number);
|
2017-01-26 22:57:43 +03:00
|
|
|
(DEPRECATED__declare_var_exports: string); // Error: number ~> string
|
2017-01-31 19:27:44 +03:00
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
import declare_m_e_with_declare_var_e from "declare_m_e_with_declare_var_e";
|
2016-12-23 22:31:38 +03:00
|
|
|
(declare_m_e_with_declare_var_e: number);
|
2017-01-11 18:16:38 +03:00
|
|
|
(declare_m_e_with_declare_var_e: string); // Error: number ~> string
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|