Skip to content

Conversation

@FrostKiwi
Copy link
Contributor

Adds Type Definitions, Solves #3 and complaints from typescript like:

Could not find a declaration file for module 'uint8-to-base64'. './node_modules/uint8-to-base64/cjs/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/uint8-to-base64` if it exists or add a new declaration (.d.ts) file containing `declare module 'uint8-to-base64';`ts(7016)

Surprised to find the browser's Uint8Array.prototype.toBase64() not widely supported and don't want to have a function in my code solving something I expect to be a standard, so I found this package and found it really useful. Typescript errors annoyed me, so I made this PR.

@WebReflection WebReflection merged commit 5c1d80d into WebReflection:master Jun 23, 2025
lunny pushed a commit to go-gitea/gitea that referenced this pull request Jun 25, 2025
The module now ships type definitions so remove our type stub.

Ref: WebReflection/uint8-to-base64#4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants