Skip to content

⬅️ Back to Table of Contents

📄 _configurable.ts

📊 Analysis Summary

Metric Count
📦 Imports 1
📊 Variables & Constants 4
📐 Interfaces 6

📚 Table of Contents

🛠️ File Location:

📂 packages/core/_configurable.ts

📦 Imports

Name Source
isClient @vueuse/shared

Variables & Constants

Name Type Kind Value Exported
defaultWindow Window & typeof globalThis const isClient ? window : undefined
defaultDocument Document const isClient ? window.document : undefined
defaultNavigator Navigator const isClient ? window.navigator : undefined
defaultLocation Location const isClient ? window.location : undefined

Interfaces

ConfigurableWindow

Interface Code
export interface ConfigurableWindow {
  /*
   * Specify a custom `window` instance, e.g. working with iframes or in testing environments.
   */
  window?: Window
}

Properties

Name Type Optional Description
window Window

ConfigurableDocument

Interface Code
export interface ConfigurableDocument {
  /*
   * Specify a custom `document` instance, e.g. working with iframes or in testing environments.
   */
  document?: Document
}

Properties

Name Type Optional Description
document Document

ConfigurableDocumentOrShadowRoot

Interface Code
export interface ConfigurableDocumentOrShadowRoot {
  /*
   * Specify a custom `document` instance or a shadow root, e.g. working with iframes or in testing environments.
   */
  document?: DocumentOrShadowRoot
}

Properties

Name Type Optional Description
document DocumentOrShadowRoot

ConfigurableNavigator

Interface Code
export interface ConfigurableNavigator {
  /*
   * Specify a custom `navigator` instance, e.g. working with iframes or in testing environments.
   */
  navigator?: Navigator
}

Properties

Name Type Optional Description
navigator Navigator

ConfigurableLocation

Interface Code
export interface ConfigurableLocation {
  /*
   * Specify a custom `location` instance, e.g. working with iframes or in testing environments.
   */
  location?: Location
}

Properties

Name Type Optional Description
location Location

ConfigurableDeepRefs<D extends boolean>

Interface Code
export interface ConfigurableDeepRefs<D extends boolean> {
  /**
   * Return deep refs instead of shallow refs.
   *
   * @default true - will be changed to `false` by default in the next major
   */
  deepRefs?: D
}

Properties

Name Type Optional Description
deepRefs D