Home / Type/ MapSources Type — vue Architecture

MapSources Type — vue Architecture

Architecture documentation for the MapSources type/interface in apiWatch.ts from the vue codebase.

Entity Profile

Source Code

src/v3/apiWatch.ts lines 35–45

type MapSources<T, Immediate> = {
  [K in keyof T]: T[K] extends WatchSource<infer V>
    ? Immediate extends true
      ? V | undefined
      : V
    : T[K] extends object
    ? Immediate extends true
      ? T[K] | undefined
      : T[K]
    : never
}

Analyze Your Own Codebase

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

Try Supermodel Free