1.4.0 • Published 7 months ago
@jxa/types v1.4.0
@jxa/types
TypeScript definition for JXA core.
Install
Install with npm:
npm install @jxa/typesUsage
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
- Update
tools/sdefs/*.sdefes Update d.ts with follows command:
yarn run dts:update
Running tests
yarn testChangelog
See Releases page.
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Author
License
MIT © azu