@importable/machine

0.1.0 • Public • Published

@importable/machine

Importable Machine allows you to import state machines with strong typing based on import attributes (presently import assertions).

import machine from './machines.css' assert { type: 'machine', from: 'css' }

machine.transition('active', 'toggle')

Installation

npm install importable @importable/machine
{
  "compilerOptions": {
    "plugins": [
      {
        "name": "importable",
        "plugins": [
          "@importable/machine"
        ]
      }
    ]
  }
}

License

Code original to this project is licensed under the CC0-1.0 License.

Package Sidebar

Install

npm i @importable/machine

Weekly Downloads

1

Version

0.1.0

License

CC0-1.0

Unpacked Size

5.67 kB

Total Files

3

Last publish

Collaborators

  • jonathantneal