-
Notifications
You must be signed in to change notification settings - Fork 405
Expand file tree
/
Copy pathtypes.d.ts
More file actions
29 lines (26 loc) · 1.01 KB
/
types.d.ts
File metadata and controls
29 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* SPDX-FileCopyrightText: 2025 SAP Spartacus team <spartacus-team@sap.com>
* SPDX-FileCopyrightText: 2026 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Global type augmentations for the Spartacus project.
* This file contains TypeScript declarations that extend global interfaces
* to support event handling patterns across all libraries.
* Required due to known issue with type check for event bindings in Angular compiler.
* For more, see:
* https://github.com/angular/angular/issues/63170
* https://github.com/angular/angular/issues/40778
*/
declare global {
/**
* Extends the GlobalEventHandlersEventMap to include Angular-specific event names
* that are used in @HostListener decorators. This ensures proper type checking
* for keyboard events when typeCheckHostBindings is enabled in the Angular compiler options.
*/
interface GlobalEventHandlersEventMap {
[k: `keydown.${string}`]: GlobalEventHandlersEventMap['keydown'];
}
}
export {};