]> git.codecow.com Git - nano-pow.git/commitdiff
Type unknown is not enough to mark property as optional.
authorChris Duncan <chris@zoso.dev>
Sun, 29 Jun 2025 05:45:26 +0000 (22:45 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 29 Jun 2025 05:45:26 +0000 (22:45 -0700)
src/types.d.ts

index 36198d01054ff8384e32cd8373964f435e3a71e3..6f039cd5b1bdd34fbd02c9485190aa4f97b89c6b 100644 (file)
@@ -56,10 +56,10 @@ export { NanoPow as default }
 * @param {number} [effort=0x4] - GPU load when generating work. Larger values are not necessarily better since they can quickly overwhelm the GPU. Default: 0x4
 */
 export type NanoPowOptions = {
-       api: unknown
-       debug: unknown
-       difficulty: unknown
-       effort: unknown
+       api?: unknown
+       debug?: unknown
+       difficulty?: unknown
+       effort?: unknown
 }
 
 /**