Skip to content

Commit

Permalink
create a type guard for config mode
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskalmar committed Nov 18, 2023
1 parent f028b07 commit b8909ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ const printConfigErrors = (error: z.ZodError) => {
};

export const parseConfig = (userConfig: Config) => {
if (detectConfigMode(userConfig) === 'platform') {
if (isPlatformModeConfig(userConfig)) {
const platformCheck = PlatformModeConfigSchema.safeParse(userConfig);

if (platformCheck.success) {
Expand Down

0 comments on commit b8909ab

Please sign in to comment.