This PR separates type definitions from executable code and updates the build script - build.mjs accordingly. This improves code organization, scalability, and facilitates code reuse. The updated build process ensures the accurate generation of the declaration file. After running the modified file no changes were made to build files which means it functions in the same way.
This makes it easier to locate types also and make changes
also using the type keyword promotes better documentation, easier refactoring, and overall improved code quality.
This PR separates type definitions from executable code and updates the build script -
build.mjs
accordingly. This improves code organization, scalability, and facilitates code reuse. The updated build process ensures the accurate generation of the declaration file. After running the modified file no changes were made to build files which means it functions in the same way.This makes it easier to locate types also and make changes
also using the
type
keyword promotes better documentation, easier refactoring, and overall improved code quality.