Skip to content

Commit

Permalink
[DataGrid] Remove unnecessary syntax in JSDoc (#10567)
Browse files Browse the repository at this point in the history
Co-authored-by: Lev Shapiro <[email protected]>
Co-authored-by: Olivier Tassinari <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2023
1 parent 2d567f6 commit 87815c0
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/pages/x/api/data-grid/data-grid-premium.json
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@
"name": "union",
"description": "{ clipboardExport?: bool, csvExport?: bool }<br>&#124;&nbsp;bool"
},
"default": ": false"
"default": "false"
},
"unstable_onCellSelectionModelChange": {
"type": { "name": "func" },
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/data-grid/data-grid-pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@
"name": "union",
"description": "{ clipboardExport?: bool, csvExport?: bool }<br>&#124;&nbsp;bool"
},
"default": ": false"
"default": "false"
}
},
"slots": [
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/x/api/data-grid/data-grid.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
"name": "union",
"description": "{ clipboardExport?: bool, csvExport?: bool }<br>&#124;&nbsp;bool"
},
"default": ": false"
"default": "false"
}
},
"slots": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ export interface AddPathToDemoDataOptions {

/**
* The depth of the tree
* @default: 1
* @default 1
*/
maxDepth?: number;

/**
* The average amount of children in a node
* @default: 2
* @default 2
*/
averageChildren?: number;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ DataGridPremiumRaw.propTypes = {
/**
* If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
* @default: false
* @default false
*/
unstable_ignoreValueFormatterDuringExport: PropTypes.oneOfType([
PropTypes.shape({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ DataGridProRaw.propTypes = {
/**
* If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
* @default: false
* @default false
*/
unstable_ignoreValueFormatterDuringExport: PropTypes.oneOfType([
PropTypes.shape({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface GridGroupingColDefOverride<R extends GridValidRowModel = any>
* The field from which we want to apply the sorting and the filtering for the grouping column.
* It is only useful when `props.rowGroupingColumnMode === "multiple"` to decide which grouping criteria should be used for sorting and filtering.
* Do not have any effect when building the tree with the `props.treeData` feature.
* @default: The sorting and filtering is applied based on the leaf field in any, otherwise based on top level grouping criteria.
* @default The sorting and filtering is applied based on the leaf field in any, otherwise based on top level grouping criteria.
*/
mainGroupingCriteria?: string;

Expand All @@ -27,7 +27,7 @@ export interface GridGroupingColDefOverride<R extends GridValidRowModel = any>

/**
* If `true`, the grouping cells will not render the amount of descendants.
* @default: false
* @default false
*/
hideDescendantCount?: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/x-data-grid/src/DataGrid/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ DataGridRaw.propTypes = {
/**
* If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
* @default: false
* @default false
*/
unstable_ignoreValueFormatterDuringExport: PropTypes.oneOfType([
PropTypes.shape({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export interface DataGridPropsWithDefaultValues {
/**
* If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
* @default: false
* @default false
*/
unstable_ignoreValueFormatterDuringExport:
| boolean
Expand Down

0 comments on commit 87815c0

Please sign in to comment.