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
might be useful to incorporate the types for requirejs with a few tweaks such as:
requirejs
module.d.ts
// RequireModule from requirejs 👇🏻 type NetsuiteRequireModule = RequireModule & { id: string; url: string; exports: any; };
this makes it easier to use module (e.g. config etc) and thus NAmdConfig)
NAmdConfig
import { id, config } from 'module'; const { somevalue } = config(); export { id, somevalue };
compiles to:
define(["require", "exports", "module"], function (require, exports, module_1) { Object.defineProperty(exports, "__esModule", { value: true }); exports.somevalue = exports.id = void 0; Object.defineProperty(exports, "id", { enumerable: true, get: function () { return module_1.id; } }); const { somevalue } = (0, module_1.config)(); exports.somevalue = somevalue; });
I'm doing this in projects individually but will either fork or PR something about this depending upon feedback .
Note: since it's a native module you can combine this with a tsconfig.json#paths.module setting of ["node_modules/@hitc/netsuite-types/module"]
tsconfig.json#paths.module
["node_modules/@hitc/netsuite-types/module"]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
might be useful to incorporate the types for
requirejs
with a few tweaks such as:module.d.ts
this makes it easier to use module (e.g. config etc) and thus
NAmdConfig
)compiles to:
I'm doing this in projects individually but will either fork or PR something about this depending upon feedback .
Note: since it's a native module you can combine this with a
tsconfig.json#paths.module
setting of["node_modules/@hitc/netsuite-types/module"]
The text was updated successfully, but these errors were encountered: