marklogic-node-typescript-definitions
v0.1.3
Published
TypeScript definitions for Marklogic's JavaScript APIs
Downloads
10
Maintainers
Readme
Marklogic TypeScript Definitions
Overview
TypeScript definitions for Marklogic's Node.js APIs.
For the server-side-javascript definitions try the marklogic-typescript-definitions package
Usage
Install:
npm install marklogic-node-typescript-definitions
To use the definitions, modify your tsconfig.json
file, adding the following entry to the files
section:
node_modules/marklogic-node-typescript-definitions/ts/index.d.ts
So, for example, your tsconfig.json
file might look like:
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
},
"files": [
"./lib/myCode.ts",
"./node_modules/marklogic-node-typescript-definitions/ts/index.d.ts"
]
}
Suggested TypeScript Editors
Below are two suggested TypeScript editors:
- (Visual Studio Code)[https://code.visualstudio.com/] runs out of the box with TypeScript support.
- (Atom)[https://atom.io/] also provides good support (if not better), but requires installation of the
atom-typescript
plugin.