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:
@@ -88,6 +88,9 @@ export interface Page {
|
||||
export interface Category {
|
||||
id: string;
|
||||
name: string;
|
||||
/**
|
||||
* custom
|
||||
*/
|
||||
categorization?:
|
||||
| {
|
||||
doc?: (string | null) | Category;
|
||||
@@ -97,6 +100,9 @@ export interface Category {
|
||||
id?: string | null;
|
||||
}[]
|
||||
| null;
|
||||
/**
|
||||
* custom
|
||||
*/
|
||||
owner?: (string | null) | Category;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
|
||||
Reference in New Issue
Block a user