Skip to content

Commit

Permalink
fix: allow custom Calcite CSS properties in style object type (#11051)
Browse files Browse the repository at this point in the history
**Related Issue:** #11013

## Summary

Augments `csstype`'s module to allow all custom Calcite CSS properties
(step 3 from
https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors).

---------

Co-authored-by: Max Patiiuk <[email protected]>
  • Loading branch information
jcfranco and maxpatiiuk authored Dec 13, 2024
1 parent cd15e95 commit 2555a61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/calcite-components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
import { Runtime } from "@arcgis/lumina";
import { setAssetPath as runtimeSetAssetPath } from "./runtime";

declare module "csstype" {
interface Properties {
[index: `--calcite-${string}`]: any;
}
}

/** @internal */
export let assetPathChanged = false;

Expand Down

0 comments on commit 2555a61

Please sign in to comment.