Closed iccir closed 6 years ago
Example syntax:
@type TypeWithOptionalProperties = {
requiredA: String,
requiredB: String,
optionalA?: String,
optionalB?: String
};
Also functions?
@type TheCallback = function(optionalA: String): void;
@type
should support optional fields for object types.