Prechádzať zdrojové kódy

docs: fix consumeGen signature

Sv443 2 mesiacov pred
rodič
commit
5456e7b1a5
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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>