We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File
InputFile
Related: #675
Easy: if (file instanceof File) return file.name in guessFilename().
if (file instanceof File) return file.name
guessFilename()
Bonus: change
export class InputFile { public readonly filename?: string; async toRaw(): Promise< Uint8Array | Iterable<Uint8Array> | AsyncIterable<Uint8Array> > }
to
export class InputFile { readonly name?: string; async stream(): AsyncIterable<Uint8Array>; }
This would:
Client
new InputFile(inputFile, "new name")
[Symbol.hasInstance]()
BunFile
The text was updated successfully, but these errors were encountered:
@all-contributors add @wojpawlik for code
Sorry, something went wrong.
@KnorpelSenf
I've put up a pull request to add @wojpawlik! 🎉
No branches or pull requests
Related: #675
Easy:
if (file instanceof File) return file.name
inguessFilename()
.Bonus: change
to
This would:
Client
,new InputFile(inputFile, "new name")
,[Symbol.hasInstance]()
acceptingBunFile
, andInputFile
from other grammY versions.The text was updated successfully, but these errors were encountered: