Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/a8ef373cfcbf62a5c65ec6c11b4744ff.json
2020-12-22 09:59:14 -05:00

1 line
1.1 KiB
JSON

{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createTypeAnnotationBasedOnTypeof;\n\nvar _generated = require(\"../generated\");\n\nfunction createTypeAnnotationBasedOnTypeof(type) {\n if (type === \"string\") {\n return (0, _generated.stringTypeAnnotation)();\n } else if (type === \"number\") {\n return (0, _generated.numberTypeAnnotation)();\n } else if (type === \"undefined\") {\n return (0, _generated.voidTypeAnnotation)();\n } else if (type === \"boolean\") {\n return (0, _generated.booleanTypeAnnotation)();\n } else if (type === \"function\") {\n return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)(\"Function\"));\n } else if (type === \"object\") {\n return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)(\"Object\"));\n } else if (type === \"symbol\") {\n return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)(\"Symbol\"));\n } else {\n throw new Error(\"Invalid typeof value\");\n }\n}","map":null,"metadata":{},"sourceType":"script"}