this is actually typescripts main use case it gets compiled to .js + d.ts files which you then publish.
e.g. even full typescript project have "only" js in their node_modules folder.
often these .js files are accompanied by d.ts files or there is a dedicated package @types/packageName.
So in short yes manually writing js and declaration files for it certainly works as well :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
this is actually typescripts main use case it gets compiled to .js + d.ts files which you then publish.
e.g. even full typescript project have "only" js in their
node_modules
folder.often these .js files are accompanied by d.ts files or there is a dedicated package
@types/packageName
.So in short yes manually writing js and declaration files for it certainly works as well :)