BREAKING CHANGE(core): switch to esm

This commit is contained in:
2022-03-25 13:31:21 +01:00
parent 431089e23f
commit 592228fc51
9 changed files with 4793 additions and 13871 deletions

View File

@ -1,3 +1,3 @@
export * from './smartstate.classes.smartstate';
export * from './smartstate.classes.statepart';
export * from './smartstate.classes.stateaction';
export * from './smartstate.classes.smartstate.js';
export * from './smartstate.classes.statepart.js';
export * from './smartstate.classes.stateaction.js';

View File

@ -1,5 +1,5 @@
import * as plugins from './smartstate.plugins';
import { StatePart } from './smartstate.classes.statepart';
import * as plugins from './smartstate.plugins.js';
import { StatePart } from './smartstate.classes.statepart.js';
/**
* Smartstate takes care of providing state

View File

@ -1,5 +1,5 @@
import * as plugins from './smartstate.plugins';
import { StatePart } from './smartstate.classes.statepart';
import * as plugins from './smartstate.plugins.js';
import { StatePart } from './smartstate.classes.statepart.js';
export interface IActionDef<TStateType, TActionPayloadType> {
(stateArg: StatePart<any, TStateType>, actionPayload: TActionPayloadType): Promise<TStateType>;

View File

@ -1,5 +1,5 @@
import * as plugins from './smartstate.plugins';
import { StateAction, IActionDef } from './smartstate.classes.stateaction';
import * as plugins from './smartstate.plugins.js';
import { StateAction, IActionDef } from './smartstate.classes.stateaction.js';
export class StatePart<TStatePartName, TStatePayload> {
public name: TStatePartName;