]> zoso.dev Git - nano-pow.git/commitdiff
Reorganize typings.
authorChris Duncan <chris@zoso.dev>
Mon, 13 Jan 2025 15:38:43 +0000 (07:38 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 13 Jan 2025 15:38:43 +0000 (07:38 -0800)
package.json
types.d.ts

index e67ebdf6f066ef868be729fb59784bc58182ac6b..a1960530ce79e2af5c405700d56f56326395f19c 100644 (file)
@@ -53,8 +53,8 @@
        "type": "module",
        "exports": [
                "./dist/main.min.js",
-               "./types.d.ts"
+               "./dist/types.d.ts"
        ],
-       "types": "types.d.ts",
+       "types": "dist/types.d.ts",
        "unpkg": "dist/main.min.js"
 }
index 14f4538343cb620a98c3dadcdaaeab69164c9ea9..29be660062f917d707db7bbac140f95e210bcc4b 100644 (file)
@@ -1,5 +1,9 @@
 import "@webgpu/types"
 
+export declare const NanoPowGlFragmentShader: string
+export declare const NanoPowGlVertexShader: string
+export declare const NanoPowGpuComputeShader: any
+
 declare const NanoPow: typeof NanoPowGl | typeof NanoPowGpu | null
 
 export declare class NanoPowGl {
@@ -47,7 +51,3 @@ export declare class NanoPowGpu {
        */
        static validate (work: string, hash: string, threshold?: number): Promise<boolean>
 }
-
-export declare const NanoPowGlFragmentShader: string
-export declare const NanoPowGlVertexShader: string
-export declare const NanoPowGpuComputeShader: any