Home / File/ events.ts — svelte Source File

events.ts — svelte Source File

Architecture documentation for events.ts, a typescript file in the svelte codebase. 1 imports, 0 dependents.

File typescript 1 imports

Entity Profile

Dependency Diagram

graph LR
  1e0a282f_05ea_b685_5532_51bca9feb530["events.ts"]
  4378b1ed_b2ec_44da_6b2e_7d944c7eb2ee["events"]
  1e0a282f_05ea_b685_5532_51bca9feb530 --> 4378b1ed_b2ec_44da_6b2e_7d944c7eb2ee
  style 1e0a282f_05ea_b685_5532_51bca9feb530 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { on } from 'svelte/events';

// ---------------- on

on(document.body, 'click', (e) => e.button);

on(window, 'click', (e) => e.button);

on(document, 'click', (e) => e.button);

on(document.createElement('input'), 'input', (e) => e.currentTarget.value);

on(
	document.body,
	'clidck',
	(e) =>
		// @ts-expect-error
		e.button
);

on(
	// @ts-expect-error
	'asd',
	'asd',
	(e) => e
);

Dependencies

  • events

Frequently Asked Questions

What does events.ts do?
events.ts is a source file in the svelte codebase, written in typescript.
What does events.ts depend on?
events.ts imports 1 module(s): events.
Where is events.ts in the architecture?
events.ts is located at packages/svelte/tests/types/events.ts (directory: packages/svelte/tests/types).

Analyze Your Own Codebase

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

Try Supermodel Free