From bf9adbb1ca6002ab1fe0b6cd9a45af3f5c987552 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 13 Jan 2025 07:38:43 -0800 Subject: [PATCH] Reorganize typings. --- package.json | 4 ++-- types.d.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index e67ebdf..a196053 100644 --- a/package.json +++ b/package.json @@ -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" } diff --git a/types.d.ts b/types.d.ts index 14f4538..29be660 100644 --- a/types.d.ts +++ b/types.d.ts @@ -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 } - -export declare const NanoPowGlFragmentShader: string -export declare const NanoPowGlVertexShader: string -export declare const NanoPowGpuComputeShader: any -- 2.34.1