From 3f66b356645c1b22c181f23e0630eff138f72fa9 Mon Sep 17 00:00:00 2001 From: dancoffman Date: Thu, 3 Nov 2022 22:57:03 -0700 Subject: [PATCH] Fix type --- bindings/node.js/dist/dts/kzg.d.ts | 4 ++-- bindings/node.js/kzg.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/node.js/dist/dts/kzg.d.ts b/bindings/node.js/dist/dts/kzg.d.ts index 7556ca5..2556def 100644 --- a/bindings/node.js/dist/dts/kzg.d.ts +++ b/bindings/node.js/dist/dts/kzg.d.ts @@ -2,8 +2,8 @@ export declare type BLSFieldElement = Uint8Array; export declare type KZGProof = Uint8Array; export declare type KZGCommitment = Uint8Array; export declare type Blob = Uint8Array; -export declare const FIELD_ELEMENTS_PER_BLOB: any; -export declare const BYTES_PER_FIELD: any; +export declare const FIELD_ELEMENTS_PER_BLOB: number; +export declare const BYTES_PER_FIELD: number; export declare function loadTrustedSetup(filePath: string): void; export declare function freeTrustedSetup(): void; export declare function blobToKzgCommitment(blob: Blob): KZGCommitment; diff --git a/bindings/node.js/kzg.ts b/bindings/node.js/kzg.ts index 2d4eb52..4597730 100644 --- a/bindings/node.js/kzg.ts +++ b/bindings/node.js/kzg.ts @@ -2,7 +2,7 @@ * The public interface of this module exposes the functions as specified by * https://github.com/ethereum/consensus-specs/blob/dev/specs/eip4844/polynomial-commitments.md#kzg */ -const kzg = require("./kzg.node"); +const kzg: KZG = require("./kzg.node"); export type BLSFieldElement = Uint8Array; // 32 bytes export type KZGProof = Uint8Array; // 48 bytes