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

common.d.ts — vue Source File

Architecture documentation for common.d.ts, a typescript file in the vue codebase.

File typescript VueCore VDom 2 functions

Entity Profile

Relationship Graph

Source Code

export type Data = { [key: string]: unknown }

export type UnionToIntersection<U> = (
  U extends any ? (k: U) => void : never
) extends (k: infer I) => void
  ? I
  : never

// Conditional returns can enforce identical types.
// See here: https://github.com/Microsoft/TypeScript/issues/27024#issuecomment-421529650
// prettier-ignore
type Equal<Left, Right> =
  (<U>() => U extends Left ? 1 : 0) extends (<U>() => U extends Right ? 1 : 0) ? true : false;

export type HasDefined<T> = Equal<T, unknown> extends true ? false : true

// If the type T accepts type "any", output type Y, otherwise output type N.
// https://stackoverflow.com/questions/49927523/disallow-call-with-any/49928360#49928360
export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N

export type LooseRequired<T> = { [P in string & keyof T]: T[P] }

Domain

Subdomains

Functions

Frequently Asked Questions

What does common.d.ts do?
common.d.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain, VDom subdomain.
What functions are defined in common.d.ts?
common.d.ts defines 2 function(s): U, k.
Where is common.d.ts in the architecture?
common.d.ts is located at types/common.d.ts (domain: VueCore, subdomain: VDom, directory: types).

Analyze Your Own Codebase

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

Try Supermodel Free