How exactly would I check that, the function for uploading only accepts a type of a blob or a file
Update: updated some thing in my ts-config, I need to complie it down to javascript now but it works. I use tsc to compile it
so attempting this causes all typescript stuff to break, sadly some of my code depends on typescript specific things.
I am using TS for pretty much the entire project, but I know TS and JS are pretty much the same with a few added rules.
At one point I did have if set to commonJS too, but it seemed to cause issues. Sending the one the is updated as a suggestion
just posted it here, the code is currently not public but I posted the ts-config and package.json
__{ "name": "hourlypets", "version": "1.0.0", "description": "A bot for displaying hourly pets", "main": "dist/index.js", "scripts": { "start": "node dist/index.js", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@types/node": "^20.5.1", "typescript": "^5.1.6" }, "dependencies": { "@petfinder/petfinder-js": "^1.0.6", "dotenv": "^16.3.1", "tsl-mastodon-api": "^0.4.0" } } _
{ "compilerOptions": { "module": "es6", "esModuleInterop": true, "target": "es6", "moduleResolution": "node", "sourceMap": true, "outDir": "dist" }, "lib": ["es2015"] }
That’s exactly what I have been dealing with I believe.
Couldn’t auto updates break things if they arnt tested?