packages/labs/ssr-dom-shim/src/test/types.d.ts
raw| 1 | /** |
| 2 | * @license |
| 3 | * Copyright 2024 Google LLC |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | /** |
| 8 | * Currently necessary to allow importing .css files. |
| 9 | * @see https://github.com/microsoft/TypeScript/issues/46689 |
| 10 | * @see https://github.com/microsoft/TypeScript/issues/46135 |
| 11 | */ |
| 12 | |
| 13 | declare module '*.css' { |
| 14 | const sheet: CSSStyleSheet; |
| 15 | export default sheet; |
| 16 | } |