counter.ts — vite Source File
Architecture documentation for counter.ts, a typescript file in the vite codebase. 0 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 16721a19_4087_a7d2_3ee3_6601ce88d7ef["counter.ts"] 771891b4_c3e5_8a9b_82c1_86967cd92236["main.ts"] 771891b4_c3e5_8a9b_82c1_86967cd92236 --> 16721a19_4087_a7d2_3ee3_6601ce88d7ef style 16721a19_4087_a7d2_3ee3_6601ce88d7ef fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
export function setupCounter(element: HTMLButtonElement) {
let counter = 0
const setCounter = (count: number) => {
counter = count
element.innerHTML = `Count is ${counter}`
}
element.addEventListener('click', () => setCounter(counter + 1))
setCounter(0)
}
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does counter.ts do?
counter.ts is a source file in the vite codebase, written in typescript. It belongs to the ProjectScaffolder domain, TemplateEngine subdomain.
What functions are defined in counter.ts?
counter.ts defines 1 function(s): setupCounter.
What files import counter.ts?
counter.ts is imported by 1 file(s): main.ts.
Where is counter.ts in the architecture?
counter.ts is located at packages/create-vite/template-vanilla-ts/src/counter.ts (domain: ProjectScaffolder, subdomain: TemplateEngine, directory: packages/create-vite/template-vanilla-ts/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free