瀏覽代碼

docs: fix consumeGen signature

Sv443 2 月之前
父節點
當前提交
5456e7b1a5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs.md

+ 2 - 2
docs.md

@@ -2254,11 +2254,11 @@ benchmark(true, true);   // Generated 10k in 1054ms
 ### consumeGen()
 Signature:  
 ```ts
-consumeGen(valGen: ValueGen): 
+consumeGen(valGen: ValueGen<any>): Promise<any>
 ```
   
 Asynchronously turns a [`ValueGen`](#valuegen) into its final value.  
-ValueGen allows for tons of flexibility in how the value can be obtained. Calling this function will resolve the final value.  
+ValueGen allows for tons of flexibility in how the value can be obtained. Calling this function will resolve the final value, no matter in what form it was passed.  
   
 <details><summary><b>Example - click to view</b></summary>