From 7a8551ccb95b292abc29f71c5986a2be9e9e748d Mon Sep 17 00:00:00 2001 From: Igor Savin Date: Sat, 3 Feb 2024 02:07:24 +0200 Subject: [PATCH] Remove redundant docs --- index.d.ts | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/index.d.ts b/index.d.ts index 890c396..ac8fb58 100644 --- a/index.d.ts +++ b/index.d.ts @@ -6,27 +6,6 @@ export = crc32; -/** - * crc32 that works with binary data and fancy character sets. - * - * @example - * import crc32 = require('buffer-crc32'); - * - * // works with buffers - * const buf = Buffer.from([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]); - * crc32(buf); // -> - * - * // will cast to buffer if given a string, so you can - * // directly use foreign characters safely - * crc32('自動販売機'); // -> - * - * // and works in append mode too - * let partialCrc = crc32('hey'); - * partialCrc = crc32(' ', partialCrc); - * partialCrc = crc32('sup', partialCrc); - * partialCrc = crc32(' ', partialCrc); - * const finalCrc = crc32('bros', partialCrc); // -> - */ declare function crc32(input: string | Buffer, partialCrc?: Buffer | number): Buffer; declare namespace crc32 {