MCPcopy Create free account
hub / github.com/vuejs/test-utils / isScriptSetup

Function isScriptSetup

src/utils.ts:230–238  ·  view source on GitHub ↗
(
  vm: ComponentPublicInstance
)

Source from the content-addressed store, hash-verified

228}
229
230export function isScriptSetup(
231 vm: ComponentPublicInstance
232): vm is ComponentPublicInstance & {
233 $: { setupState: Record<string, unknown> }
234} {
235 return (
236 vm && (vm.$ as unknown as { setupState: any }).setupState.__isScriptSetup
237 )
238}
239
240let _globalThis: any
241export const getGlobalThis = (): any => {

Callers 1

beforeCreateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…