0.1.0 • Published 12 months ago

@importable/machine v0.1.0

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
12 months ago

@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.