You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be cool if people could upload type definition files for their own public-facing scripts, or upload definitions for other popular in-game scripts similar to DefinitelyTyped, and have them be merged into the global $fs / $hs / etc. object.
I don't know TypeScript configuration/tooling well enough to know if this would actually require any work in here and/or in HSE.
Probably only worth it if there is meaningful interest, otherwise it's just a complicated way of writing them for my own consumption.
The text was updated successfully, but these errors were encountered:
my current thinking is that if people want to do this they can upload their own NPM packages which users can install and add to their tsconfig's compilerOptions.types array. currently script makers who want to do this will have to manually write these type declarations which is not ideal as this means these types will exist twice, once in their source and once in their manually written type declarations. it would be preferred if these declarations could be auto generated from script's source code but this would require inspecting types which HSM currently does not do
It would be cool if people could upload type definition files for their own public-facing scripts, or upload definitions for other popular in-game scripts similar to
DefinitelyTyped
, and have them be merged into the global$fs
/$hs
/ etc. object.I don't know TypeScript configuration/tooling well enough to know if this would actually require any work in here and/or in HSE.
Probably only worth it if there is meaningful interest, otherwise it's just a complicated way of writing them for my own consumption.
The text was updated successfully, but these errors were encountered: