Skip to content

Commit 2555a61

Browse files
jcfrancomaxpatiiuk
andauthored
fix: allow custom Calcite CSS properties in style object type (#11051)
**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]>
1 parent cd15e95 commit 2555a61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/calcite-components/src/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
import { Runtime } from "@arcgis/lumina";
88
import { setAssetPath as runtimeSetAssetPath } from "./runtime";
99

10+
declare module "csstype" {
11+
interface Properties {
12+
[index: `--calcite-${string}`]: any;
13+
}
14+
}
15+
1016
/** @internal */
1117
export let assetPathChanged = false;
1218

0 commit comments

Comments
 (0)