diff --git a/CHANGELOG.md b/CHANGELOG.md index e7f0a813..63fcb171 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## HEAD (Unreleased) -**(none)** +- feat: support for config on multiple types on keys and values -- diff --git a/src/config.ts b/src/config.ts index 23e12fbb..31284aa6 100644 --- a/src/config.ts +++ b/src/config.ts @@ -29,10 +29,10 @@ export function makeInstallationConfig(): rt.Result { const configValueRt = rt.Dictionary( rt.Record({ - value: rt.String, + value: rt.Union(rt.String, rt.Number, rt.Boolean, rt.Null).optional(), secret: rt.Boolean.optional(), }), - rt.String, + rt.Union(rt.String, rt.Number), ); // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types diff --git a/src/main.ts b/src/main.ts index 24f48e59..8f154f2b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -73,7 +73,8 @@ const runAction = async (config: Config): Promise => { }; if (config.configMap) { - await stack.setAllConfig(config.configMap); + // TODO: Remove `any` once pulumi/pulumi#12641 is fixed. + await stack.setAllConfig(config.configMap as any); } if (config.refresh) {