Home / File/ augmentation-test.ts — vue Source File

augmentation-test.ts — vue Source File

Architecture documentation for augmentation-test.ts, a typescript file in the vue codebase. 1 imports, 0 dependents.

File typescript VueCore Instance 1 imports 2 classes

Entity Profile

Dependency Diagram

graph LR
  93acc7c0_aa92_a575_3ffe_0afa2548c44d["augmentation-test.ts"]
  451106ad_39e7_1c30_4a13_bb292ee7299e["./index"]
  93acc7c0_aa92_a575_3ffe_0afa2548c44d --> 451106ad_39e7_1c30_4a13_bb292ee7299e
  style 93acc7c0_aa92_a575_3ffe_0afa2548c44d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Vue, { defineComponent } from '../index'

declare module '../vue' {
  // add instance property and method
  interface Vue {
    $instanceProperty: string
    $instanceMethod(): void
  }

  // add static property and method
  interface VueConstructor {
    staticProperty: string
    staticMethod(): void
  }
}

// augment ComponentOptions
declare module '../options' {
  interface ComponentOptions<V extends Vue> {
    foo?: string
  }
}

const vm = new Vue({
  props: ['bar'],
  data: {
    a: true
  },
  foo: 'foo',
  methods: {
    foo() {
      this.a = false
    }
  },
  computed: {
    BAR(): string {
      return this.bar.toUpperCase()
    }
  }
})

vm.$instanceProperty
vm.$instanceMethod()

Vue.staticProperty
Vue.staticMethod()

defineComponent({
  mounted() {
    this.$instanceMethod
    this.$instanceProperty
  }
})

Domain

Subdomains

Dependencies

  • ./index

Frequently Asked Questions

What does augmentation-test.ts do?
augmentation-test.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain, Instance subdomain.
What does augmentation-test.ts depend on?
augmentation-test.ts imports 1 module(s): ./index.
Where is augmentation-test.ts in the architecture?
augmentation-test.ts is located at types/test/augmentation-test.ts (domain: VueCore, subdomain: Instance, directory: types/test).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free