Skip to content

Commit

Permalink
Add summary to FunctionLike.return (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfagnani authored Sep 12, 2022
1 parent 2424005 commit a2e73f4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Added a `"rest"` field to parameters. ([#83](https://github.com/webcomponents/custom-elements-manifest/pull/83))

- Added an optional `summary` field to Function and Method return types. ([#109](https://github.com/webcomponents/custom-elements-manifest/pull/109))

<!-- ### Removed -->

### Fixed
Expand Down
9 changes: 9 additions & 0 deletions schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,15 @@ export interface FunctionLike {

return?: {
type?: Type;

/**
* A markdown summary suitable for display in a listing.
*/
summary?: string;

/**
* A markdown description.
*/
description?: string;
};
}
Expand Down
20 changes: 20 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@
"return": {
"properties": {
"description": {
"description": "A markdown description.",
"type": "string"
},
"summary": {
"description": "A markdown summary suitable for display in a listing.",
"type": "string"
},
"type": {
Expand Down Expand Up @@ -511,6 +516,11 @@
"return": {
"properties": {
"description": {
"description": "A markdown description.",
"type": "string"
},
"summary": {
"description": "A markdown summary suitable for display in a listing.",
"type": "string"
},
"type": {
Expand Down Expand Up @@ -633,6 +643,11 @@
"return": {
"properties": {
"description": {
"description": "A markdown description.",
"type": "string"
},
"summary": {
"description": "A markdown summary suitable for display in a listing.",
"type": "string"
},
"type": {
Expand Down Expand Up @@ -812,6 +827,11 @@
"return": {
"properties": {
"description": {
"description": "A markdown description.",
"type": "string"
},
"summary": {
"description": "A markdown summary suitable for display in a listing.",
"type": "string"
},
"type": {
Expand Down

0 comments on commit a2e73f4

Please sign in to comment.