hunk.code_window:     if (!child) {
         throw new Error(
           `Unable to send event to child '${to}' from interpreter '${this.id}'.`
         );
  
hunk.labels: keep replace replace replace keep
hunk.after_edit:     if (!target) {
         if (!isParent) {
           throw new Error(
             `Unable to send event to child '${to}' from service '${this.id}'.`
           );
         }
         // tslint:disable-next-line:no-console
         console.warn(
           `Service '${this.id}' has no parent: unable to send event ${event.type}`
  
hunk.file_path: src/interpreter.ts
hunk.type: replace
file: export interface InvokedPromiseOptions {
    id?: string;
  }
  
  export interface PromiseMachineSchema {
    states: {
      pending: {};
      resolved: {};
      rejected: {};
    };
  }
  
  // export function fromPromise<T>(
  //   promise: Promise<T>,
  //   options?: InvokedPromiseOptions
  // ): any {
  //   const optionsWithDefaults = {
  //     id: 'promise',
  //     ...options
  //   };
  
  //   return Machine<T, PromiseMachineSchema>({
  //     id: optionsWithDefaults.id,
  //     initial: 'pending',
  //     states: {
  //       pending: {},
  //       resolved: {},
  //       rejected: {}
  //     }
  //   });
  // }
  