We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be1788c commit b5ec116Copy full SHA for b5ec116
packages/decap-cms-core/src/types/redux.ts
@@ -294,7 +294,7 @@ export type CmsFieldMeta<IsInternal extends boolean = false> = {
294
label?: string;
295
hint?: string;
296
comment?: string;
297
-} & IsInternal extends true
+} & (IsInternal extends true
298
? {
299
widget: 'string';
300
name: 'path';
@@ -304,7 +304,7 @@ export type CmsFieldMeta<IsInternal extends boolean = false> = {
304
: {
305
widget?: 'string';
306
name?: never;
307
- };
+ });
308
309
/**
310
* Fields without a widget prop are treated as string fields.
0 commit comments