Skip to content

Commit

Permalink
Fix missing ULC config var types
Browse files Browse the repository at this point in the history
  • Loading branch information
bkegley committed Jul 25, 2024
1 parent 19b5672 commit d8b1a13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/spectral/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prismatic-io/spectral",
"version": "9.0.4",
"version": "9.0.5",
"description": "Utility library for building Prismatic components",
"keywords": ["prismatic"],
"main": "dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion packages/spectral/src/types/ConfigVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
ConfigPageElement,
ComponentRegistryDataSource,
ComponentRegistryConnection,
UserLevelConfigPages,
} from ".";
import { Prettify, UnionToIntersection } from "./utils";

Expand Down Expand Up @@ -332,7 +333,8 @@ type ExtractConfigVars<TConfigPages extends { [key: string]: ConfigPage }> =
: never
: never;

export type ConfigVars = Prettify<UnionToIntersection<ExtractConfigVars<ConfigPages>>>;
export type ConfigVars = Prettify<UnionToIntersection<ExtractConfigVars<ConfigPages>>> &
Prettify<UnionToIntersection<ExtractConfigVars<UserLevelConfigPages>>>;

export const isCodeConfigVar = (cv: ConfigVar): cv is CodeConfigVar =>
"dataType" in cv && cv.dataType === "code";
Expand Down

0 comments on commit d8b1a13

Please sign in to comment.