feat: jsdocs for generated types, by using admin.description (#9917)
This makes use of admin.description to generate JSDocs for field,
collection and global generated types.


For the future, we should add a dedicated property to override these
JSDocs.
You can view the effect of this PR on our test suite generated types
here:
05f552bbbc
This commit is contained in:
@@ -90,6 +90,9 @@ export interface Page {
|
||||
meta: {
|
||||
title: string;
|
||||
description?: string | null;
|
||||
/**
|
||||
* Maximum upload file size: 12MB. Recommended file size for images is <500KB.
|
||||
*/
|
||||
image?: (string | null) | Media;
|
||||
ogTitle?: string | null;
|
||||
};
|
||||
@@ -146,6 +149,9 @@ export interface PagesWithImportedField {
|
||||
description?: string | null;
|
||||
};
|
||||
innerMedia?: {
|
||||
/**
|
||||
* Maximum upload file size: 12MB. Recommended file size for images is <500KB.
|
||||
*/
|
||||
image?: (string | null) | Media;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user