From 51b763cbf2122b478ab788519bd3a08d291d64df Mon Sep 17 00:00:00 2001 From: Josh Dales Date: Sat, 18 Mar 2023 15:04:24 -0400 Subject: [PATCH] Update comments in getMatchConfigs to represent updated types --- src/labeler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/labeler.ts b/src/labeler.ts index 4d9c7698..14487d98 100644 --- a/src/labeler.ts +++ b/src/labeler.ts @@ -106,10 +106,10 @@ async function getMatchConfigs( configurationPath ); - // loads (hopefully) a `{[label:string]: string | StringOrMatchConfig[]}`, but is `any`: + // loads (hopefully) a `{[label:string]: MatchConfig[]}`, but is `any`: const configObject: any = yaml.load(configurationContent); - // transform `any` => `Map` or throw if yaml is malformed: + // transform `any` => `Map` or throw if yaml is malformed: return getLabelConfigMapFromObject(configObject); }