jxa-types
    Preparing search index...

    jxa-types

    Typings for JXA

    NPM Version GitHub tag (with filter) License GitHub commits since latest release (by SemVer including pre-releases) CodeQL QA GitHub Pages pre-commit NPM Downloads Stargazers

    @Tatsh Mastodon Follow

    VS Code auto-completion

    This is a set of typings for AppleScript in JavaScript that works on macOS 10.10 and above.

    To use this, add jxa-types to your project. You also need to add jxa-types to tsconfig.json under compilerOptions.types.

    If you need to use dependencies from NPM you must use a method such as with Webpack to bundle your code into a single file.

    All types are exported globally to match Objective-C. Some are representations of types from AppleScript. Most are Objective-C Foundation types. In the $ namespace, many library functions are exported. These require calling ObjC.import with the appropriate libraries before calling them.