typescript-state-machine
Advanced tools
Comparing version
@@ -1,2 +0,3 @@ | ||
import { IState, ListenerRegistration, Logger, StateMachine, Transitions } from './typings'; | ||
import type { Logger } from 'generic-logger-typings'; | ||
import { IState, ListenerRegistration, StateMachine, Transitions } from './typings'; | ||
export declare class StateMachineImpl<T extends State> implements StateMachine<T> { | ||
@@ -3,0 +4,0 @@ readonly states: T[]; |
@@ -23,9 +23,1 @@ export interface Transitions<T> { | ||
} | ||
export declare type LoggingFunction = (...args: any[]) => void; | ||
export declare type Logger = { | ||
debug: LoggingFunction; | ||
info: LoggingFunction; | ||
warn: LoggingFunction; | ||
error: LoggingFunction; | ||
fatal: LoggingFunction; | ||
}; |
{ | ||
"name": "typescript-state-machine", | ||
"version": "0.9.7", | ||
"version": "0.9.8", | ||
"description": "", | ||
@@ -23,2 +23,5 @@ "main": "dist/index.js", | ||
"homepage": "https://github.com/taktik/typescript-state-machine#readme", | ||
"dependencies": { | ||
"generic-logger-typings": "1.0.0" | ||
}, | ||
"devDependencies": { | ||
@@ -25,0 +28,0 @@ "@types/jest": "27.0.3", |
Sorry, the diff of this file is not supported yet
30491
-43.83%1
Infinity%14
-46.15%443
-59.43%+ Added
+ Added