The attached zip file includes a sample TypeScript Declaration file (progress.d.ts) for the JSDO and examples using it.

To edit the examples, open the .ts and .html files in an editor that supports TypeScript such as Visual Studio Code.

The code uses type notation for the Session and JSDO objects and shows how to use custom classes to extend the JSDO to add additional properties.

To run the examples compile the .ts file into .js and open the corresponding .html file.

Example:

tsc example001.ts

start example001.html

Note: This TypeScript declaration file is currently not supported by Progress Software.

You can vote for the following idea to express your interest on this functionality:

TypeScript Declaration File for the JSDO