We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26888bd commit 8a1268cCopy full SHA for 8a1268c
src/types.ts
@@ -112,12 +112,12 @@ export function isEntityIdStateConfig(
112
export function isEntityIdAttrConfig(
113
entityConfig: EntityIdConfig
114
): entityConfig is EntityIdAttrConfig {
115
- return "attribute" in entityConfig;
+ return !!entityConfig["attribute"];
116
}
117
export function isEntityIdStatisticsConfig(
118
119
): entityConfig is EntityIdStatisticsConfig {
120
- return "period" in entityConfig;
+ return !!entityConfig["period"];
121
122
123
export type Timestamp = number;
0 commit comments