JSPM

jxa-common-used

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

d.ts for common used app

Package Exports

  • jxa-common-used
  • jxa-common-used/index.js

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-common-used) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

jxa-common-used

d.ts for common used app

npm version npm downloads npm license

Install

$ pnpm add jxa-common-used

Usage

pnpm add -D @jxa/types @jxa/global-type jxa-common-used

tsconfig.json

{
  "compilerOptions": {
    "types": ["@jxa/global-type", "@jxa/types"]
  }
}

or use triple slash directive

/// <reference types='@jxa/global-type' />
/// <reference types='@jxa/types' />

in some-script.ts

#!txa

/// <reference types='@jxa/global-type' />
/// <reference types='@jxa/types' />

import { PathFinder } from '..'

{
  const app = Application<PathFinder>('Path Finder')
  console.log((app.selection() || []).map((x) => x.posixPath()))
}

{
  const app = Application('Finder')
  console.log((app.selection() || []).map((x) => x.url()))
}

Changelog

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org