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:
@@ -107,6 +107,9 @@ export interface User {
|
||||
export interface Product {
|
||||
id: string;
|
||||
name?: string | null;
|
||||
/**
|
||||
* All pricing information is managed in Stripe and will be reflected here.
|
||||
*/
|
||||
price?: {
|
||||
stripePriceID?: string | null;
|
||||
stripeJSON?: string | null;
|
||||
@@ -123,6 +126,9 @@ export interface Product {
|
||||
export interface Customer {
|
||||
id: string;
|
||||
name?: string | null;
|
||||
/**
|
||||
* All subscriptions are managed in Stripe and will be reflected here. Use the link in the sidebar to go directly to this customer in Stripe to begin managing their subscriptions.
|
||||
*/
|
||||
subscriptions?:
|
||||
| {
|
||||
stripeSubscriptionID?: string | null;
|
||||
|
||||
Reference in New Issue
Block a user