JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11055
  • Score
    100M100P100Q132843F
  • License MIT

TypeScript definition for JXA core.

Package Exports

  • @jxa/types
  • @jxa/types/src/index.d.ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jxa/types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@jxa/types

TypeScript definition for JXA core.

Install

Install with npm:

npm install @jxa/types

Usage

This library is just TypeScript definition files. In other words, this library only used for importing.

If you want to modify global, see @jxa/global-type.

Use with custom Application type

Application support generics type that return T & Application

Example: GoogleChrome Application

import { Application } from "@jxa/types";
import { GoogleChrome } from "./fixtures/GoogleChrome";
// Pass Custom Application type as generics
const chrome = Application<GoogleChrome>("Google Chrome");
const frontWindow: GoogleChrome.Window = chrome.app.windows[0];

Update Core d.ts

  1. Update tools/sdefs/*.sdefes

  2. Update d.ts with follows command:

    yarn run dts:update

Running tests

yarn test

Changelog

See Releases page.

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu