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

index.d.ts — vue Source File

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

Entity Profile

Dependency Diagram

graph LR
  d24a563e_3268_196c_05d7_d517e9d8aafa["index.d.ts"]
  c5601857_7faf_30c6_efca_20de90db006c["vue"]
  d24a563e_3268_196c_05d7_d517e9d8aafa --> c5601857_7faf_30c6_efca_20de90db006c
  style d24a563e_3268_196c_05d7_d517e9d8aafa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { VNode } from 'vue'

/*
 * Template compilation options / results
 */
interface CompilerOptions {
  modules?: ModuleOptions[]
  directives?: Record<string, DirectiveFunction>
  preserveWhitespace?: boolean
  whitespace?: 'preserve' | 'condense'
  outputSourceRange?: any
}

interface CompilerOptionsWithSourceRange extends CompilerOptions {
  outputSourceRange: true
}

interface ErrorWithRange {
  msg: string
  start: number
  end: number
}

interface CompiledResult<ErrorType> {
  ast: ASTElement | undefined
  render: string
  staticRenderFns: string[]
  errors: ErrorType[]
  tips: ErrorType[]
}

interface CompiledResultFunctions {
  render: () => VNode
  staticRenderFns: (() => VNode)[]
}

interface ModuleOptions {
  preTransformNode: (el: ASTElement) => ASTElement | undefined
  transformNode: (el: ASTElement) => ASTElement | undefined
  postTransformNode: (el: ASTElement) => void
  genData: (el: ASTElement) => string
  transformCode?: (el: ASTElement, code: string) => string
  staticKeys?: string[]
}

type DirectiveFunction = (node: ASTElement, directiveMeta: ASTDirective) => void

/*
 * AST Types
 */

/**
 * - 0: FALSE - whole sub tree un-optimizable
 * - 1: FULL - whole sub tree optimizable
 * - 2: SELF - self optimizable but has some un-optimizable children
 * - 3: CHILDREN - self un-optimizable but have fully optimizable children
 * - 4: PARTIAL - self un-optimizable with some un-optimizable children
 */
export type SSROptimizability = 0 | 1 | 2 | 3 | 4

// ... (188 more lines)

Domain

Subdomains

Dependencies

  • vue

Frequently Asked Questions

What does index.d.ts do?
index.d.ts is a source file in the vue codebase, written in typescript. It belongs to the CompilerSFC domain, TemplateTransformer subdomain.
What functions are defined in index.d.ts?
index.d.ts defines 4 function(s): VNode, code, el, node.
What does index.d.ts depend on?
index.d.ts imports 1 module(s): vue.
Where is index.d.ts in the architecture?
index.d.ts is located at packages/template-compiler/types/index.d.ts (domain: CompilerSFC, subdomain: TemplateTransformer, directory: packages/template-compiler/types).

Analyze Your Own Codebase

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

Try Supermodel Free