a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(multibase): explicit types

Mary 0cc2e8d8 74ee381a

+14 -4
+10 -2
packages/utilities/multibase/lib/bases/base32.ts
··· 2 2 3 3 const BASE32_CHARSET = 'abcdefghijklmnopqrstuvwxyz234567'; 4 4 5 - export const fromBase32 = /*#__PURE__*/ createRfc4648Decode(BASE32_CHARSET, 5, false); 5 + export const fromBase32: (source: string) => Uint8Array = /*#__PURE__*/ createRfc4648Decode( 6 + BASE32_CHARSET, 7 + 5, 8 + false, 9 + ); 6 10 7 - export const toBase32 = /*#__PURE__*/ createRfc4648Encode(BASE32_CHARSET, 5, false); 11 + export const toBase32: (source: Uint8Array) => string = /*#__PURE__*/ createRfc4648Encode( 12 + BASE32_CHARSET, 13 + 5, 14 + false, 15 + );
+4 -2
packages/utilities/multibase/lib/bases/base58.ts
··· 2 2 3 3 const BASE58BTC_CHARSET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; 4 4 5 - export const fromBase58Btc = /*#__PURE__*/ createBtcBaseDecode(BASE58BTC_CHARSET); 5 + export const fromBase58Btc: (source: string) => Uint8Array = 6 + /*#__PURE__*/ createBtcBaseDecode(BASE58BTC_CHARSET); 6 7 7 - export const toBase58Btc = /*#__PURE__*/ createBtcBaseEncode(BASE58BTC_CHARSET); 8 + export const toBase58Btc: (source: Uint8Array) => string = 9 + /*#__PURE__*/ createBtcBaseEncode(BASE58BTC_CHARSET);