Skip to content

Commit 100b461

Browse files
authored
feat: add readonly flag to PropertyLike (#118)
1 parent e44378d commit 100b461

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

schema.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,11 @@ export interface PropertyLike {
552552
* If the value is a string, it's the reason for the deprecation.
553553
*/
554554
deprecated?: boolean | string;
555+
556+
/**
557+
* Whether the property is read-only.
558+
*/
559+
readonly?: boolean;
555560
}
556561

557562
export interface ClassField extends PropertyLike {

schema.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@
133133
"privacy": {
134134
"$ref": "#/definitions/Privacy"
135135
},
136+
"readonly": {
137+
"description": "Whether the property is read-only.",
138+
"type": "boolean"
139+
},
136140
"source": {
137141
"$ref": "#/definitions/SourceReference"
138142
},
@@ -881,6 +885,10 @@
881885
"description": "Whether the parameter is optional. Undefined implies non-optional.",
882886
"type": "boolean"
883887
},
888+
"readonly": {
889+
"description": "Whether the property is read-only.",
890+
"type": "boolean"
891+
},
884892
"rest": {
885893
"description": "Whether the parameter is a rest parameter. Only the last parameter may be a rest parameter.\nUndefined implies single parameter.",
886894
"type": "boolean"
@@ -1035,6 +1043,10 @@
10351043
"name": {
10361044
"type": "string"
10371045
},
1046+
"readonly": {
1047+
"description": "Whether the property is read-only.",
1048+
"type": "boolean"
1049+
},
10381050
"source": {
10391051
"$ref": "#/definitions/SourceReference"
10401052
},

0 commit comments

Comments
 (0)