Skip to content

Commit b5ec116

Browse files
committed
fix: add missing parenthesis
1 parent be1788c commit b5ec116

File tree

1 file changed

+2
-2
lines changed
  • packages/decap-cms-core/src/types

1 file changed

+2
-2
lines changed

packages/decap-cms-core/src/types/redux.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export type CmsFieldMeta<IsInternal extends boolean = false> = {
294294
label?: string;
295295
hint?: string;
296296
comment?: string;
297-
} & IsInternal extends true
297+
} & (IsInternal extends true
298298
? {
299299
widget: 'string';
300300
name: 'path';
@@ -304,7 +304,7 @@ export type CmsFieldMeta<IsInternal extends boolean = false> = {
304304
: {
305305
widget?: 'string';
306306
name?: never;
307-
};
307+
});
308308

309309
/**
310310
* Fields without a widget prop are treated as string fields.

0 commit comments

Comments
 (0)