Support string type for commands

Summary:
String type seems to be already supported by codegen, but it was not included in the list for command methods.

Changelog: [Internal]

Reviewed By: JoshuaGross

Differential Revision: D29306740

fbshipit-source-id: 44b267c09f471dc601759ed2f7211a9e0fc1bb90
This commit is contained in:
Andrei Shikov
2021-06-22 15:31:47 -07:00
committed by Facebook GitHub Bot
parent d4d22fbfb9
commit 01c3bcdab0
@@ -76,6 +76,11 @@ function buildCommandSchema(property, types: TypeDeclarationMap) {
type: 'FloatTypeAnnotation',
};
break;
case 'StringTypeAnnotation':
returnType = {
type: 'StringTypeAnnotation',
};
break;
default:
(type: empty);
throw new Error(