MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / prepareAction

Method prepareAction

src/monogatari.ts:1811–1813  ·  view source on GitHub ↗
(statement: unknown, { cycle, extras }: { cycle: 'Application' | 'Revert'; extras?: Record<string, unknown> })

Source from the content-addressed store, hash-verified

1809 static prepareAction(statement: Record<string, unknown>, { cycle, extras }: { cycle: 'Application' | 'Revert'; extras?: Record<string, unknown> }): ActionInstance | null;
1810 static prepareAction(statement: string | Record<string, unknown>, { cycle, extras }: { cycle: 'Application' | 'Revert'; extras?: Record<string, unknown> }): ActionInstance | null;
1811 static prepareAction (statement: unknown, { cycle, extras }: { cycle: 'Application' | 'Revert'; extras?: Record<string, unknown> }): ActionInstance | null {
1812 return _prepareAction(this.asEngine(), statement as string | Record<string, unknown>, { cycle, extras });
1813 }
1814
1815 static async revert (statement: unknown = null, shouldAdvance = true, shouldStepBack = true): Promise<{ advance: boolean; step: boolean } | void> {
1816 return _revert(this.asEngine(), statement, shouldAdvance, shouldStepBack);

Callers 15

onLoadMethod · 0.80
onLoadMethod · 0.80
applyMethod · 0.80
revertMethod · 0.80
willApplyMethod · 0.80
willRevertMethod · 0.80
revertMethod · 0.80
revertMethod · 0.80
revertMethod · 0.80
onLoadMethod · 0.80
revertMethod · 0.80
applyMethod · 0.80

Calls 1

asEngineMethod · 0.95

Tested by

no test coverage detected