@importable/machine
v0.1.0
Published
Import state machines with strong typing based on import attributes
Downloads
7
Maintainers
Readme
@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.