Closure Next is a modern TypeScript-based reimplementation of the Google Closure Library, designed for seamless integration with contemporary JavaScript frameworks and development workflows.
component.ts)¶The component system provides the foundation for creating reusable UI components in Closure Next.
dom.ts)¶Provides utilities for DOM manipulation and traversal.
events.ts)¶Handles event management and propagation across the application.
id.ts)¶Manages unique identifiers for components and DOM elements.
utils/array.ts)¶Collection of array manipulation utilities.
utils/object.ts)¶Object manipulation and transformation utilities.
utils/string.ts)¶String manipulation and formatting utilities.
The library includes comprehensive TypeScript type definitions for all APIs, ensuring type safety and excellent IDE support.
Closure Next uses ES Modules (ESM) as its primary module format, with CommonJS (CJS) compatibility provided through package.json configuration.
dist/index.js (CommonJS)dist/index.mjs (ESM)dist/index.d.tsThe core package has optional peer dependencies for framework integrations: - React ≥18.0.0 - Vue ≥3.0.0 - Angular ≥17.0.0 - Svelte ≥4.0.0
These dependencies are marked as optional and only required when using the respective framework integrations.