inject-test.ts — vue Source File
Architecture documentation for inject-test.ts, a typescript file in the vue codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 59dd5e05_bf62_4746_bf31_5d3acf19da82["inject-test.ts"] 451106ad_39e7_1c30_4a13_bb292ee7299e["./index"] 59dd5e05_bf62_4746_bf31_5d3acf19da82 --> 451106ad_39e7_1c30_4a13_bb292ee7299e 3bc1859e_5f62_1ad0_1a20_c1ba96d0683f["utils.ts"] 59dd5e05_bf62_4746_bf31_5d3acf19da82 --> 3bc1859e_5f62_1ad0_1a20_c1ba96d0683f 620797b4_7e39_eef5_c1bc_e0f39399ca9d["expectType"] 59dd5e05_bf62_4746_bf31_5d3acf19da82 --> 620797b4_7e39_eef5_c1bc_e0f39399ca9d 2d9e76a6_6850_37a3_10b2_3172dcc30bcd["expectType"] 59dd5e05_bf62_4746_bf31_5d3acf19da82 --> 2d9e76a6_6850_37a3_10b2_3172dcc30bcd style 59dd5e05_bf62_4746_bf31_5d3acf19da82 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { InjectionKey, provide, inject } from '../../index'
import { expectType } from '../utils'
const key: InjectionKey<number> = Symbol()
provide(key, 1)
// @ts-expect-error
provide(key, 'foo')
expectType<number | undefined>(inject(key))
expectType<number>(inject(key, 1))
expectType<number>(inject(key, () => 1, true /* treatDefaultAsFactory */))
expectType<() => number>(inject('foo', () => 1))
expectType<() => number>(inject('foo', () => 1, false))
expectType<number>(inject('foo', () => 1, true))
Domain
Dependencies
- ./index
- expectType
- expectType
- utils.ts
Source
Frequently Asked Questions
What does inject-test.ts do?
inject-test.ts is a source file in the vue codebase, written in typescript. It belongs to the VueCore domain.
What does inject-test.ts depend on?
inject-test.ts imports 4 module(s): ./index, expectType, expectType, utils.ts.
Where is inject-test.ts in the architecture?
inject-test.ts is located at types/test/v3/inject-test.ts (domain: VueCore, directory: types/test/v3).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free