Home / File/ vnode.d.ts — vue Source File

vnode.d.ts — vue Source File

Architecture documentation for vnode.d.ts, a typescript file in the vue codebase. 5 imports, 0 dependents.

File typescript CompilerSFC ScriptAnalyzer 5 imports 3 functions

Entity Profile

Dependency Diagram

graph LR
  bb1277c9_9960_49ce_ea9d_c481f8a62d19["vnode.d.ts"]
  67e5c1f2_a541_8b51_fd42_10deceb7d06c["./jsx"]
  bb1277c9_9960_49ce_ea9d_c481f8a62d19 --> 67e5c1f2_a541_8b51_fd42_10deceb7d06c
  dc6e3659_cdc8_9bde_c04a_3f2e10157f23["./vue"]
  bb1277c9_9960_49ce_ea9d_c481f8a62d19 --> dc6e3659_cdc8_9bde_c04a_3f2e10157f23
  28e0e4fb_82e2_63fb_e4b0_94f95ea94f68["./options"]
  bb1277c9_9960_49ce_ea9d_c481f8a62d19 --> 28e0e4fb_82e2_63fb_e4b0_94f95ea94f68
  f8f2cee2_d92b_d3d2_8e1d_befeef5041e4["./v3-generated"]
  bb1277c9_9960_49ce_ea9d_c481f8a62d19 --> f8f2cee2_d92b_d3d2_8e1d_befeef5041e4
  44f295dc_6af8_6973_b750_eaed44eedc19["./v3-component-public-instance"]
  bb1277c9_9960_49ce_ea9d_c481f8a62d19 --> 44f295dc_6af8_6973_b750_eaed44eedc19
  style bb1277c9_9960_49ce_ea9d_c481f8a62d19 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { StyleValue } from './jsx'
import { Vue } from './vue'
import { DirectiveFunction, DirectiveOptions } from './options'
import { Ref } from './v3-generated'
import { ComponentPublicInstance } from './v3-component-public-instance'

/**
 * For extending allowed non-declared props on components in TSX
 */
export interface ComponentCustomProps {}

/**
 * Default allowed non-declared props on component in TSX
 */
export interface AllowedComponentProps {
  class?: unknown
  style?: unknown
}

export type ScopedSlot = (props: any) => ScopedSlotReturnValue
type ScopedSlotReturnValue =
  | VNode
  | string
  | boolean
  | number
  | null
  | undefined
  | ScopedSlotReturnArray
interface ScopedSlotReturnArray extends Array<ScopedSlotReturnValue> {}

// Scoped slots are guaranteed to return Array of VNodes starting in 2.6
export type NormalizedScopedSlot = (props: any) => ScopedSlotChildren
export type ScopedSlotChildren = VNode[] | undefined

// Relaxed type compatible with $createElement
export type VNodeChildren =
  | VNodeChildrenArrayContents
  | [ScopedSlot]
  | string
  | boolean
  | number
  | null
  | undefined
export interface VNodeChildrenArrayContents
  extends Array<VNodeChildren | VNode> {}

export interface VNode {
  tag?: string
  data?: VNodeData
  children?: VNode[]
  text?: string
  elm?: Node
  ns?: string
  context?: Vue
  key?: string | number | symbol | boolean
  componentOptions?: VNodeComponentOptions
  componentInstance?: Vue
  parent?: VNode
  raw?: boolean
  isStatic?: boolean
  isRootInsert: boolean
  isComment: boolean
}

export interface VNodeComponentOptions {
  Ctor: typeof Vue
  propsData?: object
  listeners?: object
  children?: VNode[]
  tag?: string
}

export type VNodeRef =
  | string
  | Ref
  | ((
      ref: Element | ComponentPublicInstance | null,
      refs: Record<string, any>
    ) => void)

export interface VNodeData {
  key?: string | number
  slot?: string
  scopedSlots?: { [key: string]: ScopedSlot | undefined }
  ref?: VNodeRef
  refInFor?: boolean
  tag?: string
  staticClass?: string
  class?: any
  staticStyle?: { [key: string]: any }
  style?: StyleValue
  props?: { [key: string]: any }
  attrs?: { [key: string]: any }
  domProps?: { [key: string]: any }
  hook?: { [key: string]: Function }
  on?: { [key: string]: Function | Function[] }
  nativeOn?: { [key: string]: Function | Function[] }
  transition?: object
  show?: boolean
  inlineTemplate?: {
    render: Function
    staticRenderFns: Function[]
  }
  directives?: VNodeDirective[]
  keepAlive?: boolean
}

export interface VNodeDirective {
  name: string
  value?: any
  oldValue?: any
  expression?: string
  arg?: string
  oldArg?: string
  modifiers?: { [key: string]: boolean }
  def?: DirectiveFunction | DirectiveOptions
}

Domain

Subdomains

Dependencies

  • ./jsx
  • ./options
  • ./v3-component-public-instance
  • ./v3-generated
  • ./vue

Frequently Asked Questions

What does vnode.d.ts do?
vnode.d.ts is a source file in the vue codebase, written in typescript. It belongs to the CompilerSFC domain, ScriptAnalyzer subdomain.
What functions are defined in vnode.d.ts?
vnode.d.ts defines 3 function(s): ScopedSlotChildren, ScopedSlotReturnValue, ref.
What does vnode.d.ts depend on?
vnode.d.ts imports 5 module(s): ./jsx, ./options, ./v3-component-public-instance, ./v3-generated, ./vue.
Where is vnode.d.ts in the architecture?
vnode.d.ts is located at types/vnode.d.ts (domain: CompilerSFC, subdomain: ScriptAnalyzer, directory: types).

Analyze Your Own Codebase

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

Try Supermodel Free