MCPcopy
hub / github.com/statelyai/xstate / attachDevTools

Method attachDevTools

packages/core/src/createActor.ts:758–766  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

756 }
757
758 private attachDevTools(): void {
759 const { devTools } = this.options;
760 if (devTools) {
761 const resolvedDevToolsAdapter =
762 typeof devTools === 'function' ? devTools : devToolsAdapter;
763
764 resolvedDevToolsAdapter(this);
765 }
766 }
767 public toJSON() {
768 return {
769 xstate$$type: $$ACTOR_TYPE,

Callers 1

startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected