hunk.code_window: import { Ref, isRef } from 'vue';
   import { useActor } from './useActor';
   export function getServiceSnapshot<
     TService extends Interpreter<any, any, any, any>
   >(service: TService): TService['state'] {
     // TODO: remove compat lines in a new major, replace literal number with InterpreterStatus then as well
     return ('status' in service ? service.status : (service as any)._status) !== 0
       ? service.state
       : service.machine.initialState;
   }
   /**
    * @deprecated Use `useActor` instead.
    *
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace replace replace replace replace keep keep keep
hunk.file_path: packages/xstate-vue/src/useService.ts
hunk.type: replace
file: {
    "name": "xstate-docs",
    "private": true,
    "description": "Documentation for XState",
    "main": "index.js",
    "repository": "https://github.com/davidkpiano/xstate",
    "author": "David Khourshid",
    "license": "MIT",
    "scripts": {
      "docs:dev": "vuepress dev .",
      "docs:readme": "cpy ../README.md .",
      "docs:packages": "cpy '../packages/*/README.md' docs --parents --rename=index.md && cpy '../packages/*/docs/*.md' docs --parents",
      "docs:build": "npm run docs:readme && npm run docs:packages && vuepress build .",
      "docs:pdf": "npm run docs:build && vuepress export .",
      "docs:publish": "npm run docs:build && gh-pages --dist .vuepress/dist --dest ./docs"
    },
    "dependencies": {
      "@vuepress/plugin-google-analytics": "^1.8.2",
      "cpy-cli": "^3.1.1",
      "gh-pages": "^3.1.0",
      "mermaid": "^8.9.3",
      "vuepress": "^1.8.2",
      "vuepress-plugin-export": "^0.2.0"
    }
  }
  