diff --git a/docs/v2/index.html b/docs/v2/index.html index c39694709b..927c539d57 100644 --- a/docs/v2/index.html +++ b/docs/v2/index.html @@ -2465,7 +2465,7 @@
var ref, zip; -zip = typeof lottery.drawWinner === "function" ? (ref = lottery.drawWinner().address) != null ? ref.zipcode : void 0 : void 0; +zip = typeof lottery.drawWinner === "function" ? (ref = lottery.drawWinner().address) != null ? ref.zipcode : void 0 : void 0;@@ -4588,28 +4588,50 @@
# @flow -fn = (str ###: string ###, num ###: number ###) ###: string ### -> - str + num +###:: +type Obj = { + num: number, +}; +### + +fn = (str ###: string ###, obj ###: Obj ###) ###: string ### -> + str + obj.num
// @flow var fn; -fn = function(str/*: string */, num/*: number */)/*: string */ { - return str + num; +/*:: +type Obj = { + num: number, +}; +*/ +fn = function(str/*: string */, obj/*: Obj */)/*: string */ { + return str + obj.num; };