Skip to content

Commit f589bbe

Browse files
authored
fix(types): use method syntax for Checksum fn
1 parent a06f844 commit f589bbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/types/src/checksum.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ export interface Checksum {
2121
* Creates a new checksum object that contains a deep copy of the internal
2222
* state of the current `Checksum` object.
2323
*/
24-
copy?: () => Checksum;
24+
copy?(): Checksum;
2525

2626
/**
2727
* Returns the digest of all of the data passed.
2828
*/
29-
digest: () => Promise<Uint8Array>;
29+
digest(): Promise<Uint8Array>;
3030

3131
/**
3232
* Allows marking a checksum for checksums that support the ability
@@ -35,12 +35,12 @@ export interface Checksum {
3535
* @param {number} readLimit - The maximum limit of bytes that can be read
3636
* before the mark position becomes invalid.
3737
*/
38-
mark?: (readLimit: number) => void;
38+
mark?(readLimit: number): void;
3939

4040
/**
4141
* Resets the checksum to its initial value.
4242
*/
43-
reset: () => void;
43+
reset(): void;
4444

4545
/**
4646
* Adds a chunk of data for which checksum needs to be computed.

0 commit comments

Comments
 (0)