From 0ec23ddbe69925a07919287dc12399914e0d8b91 Mon Sep 17 00:00:00 2001 From: Mike Matuszak Date: Wed, 22 Mar 2023 08:29:40 -0400 Subject: [PATCH 1/2] Add `readonly` property to `PropertyLike` --- schema.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/schema.d.ts b/schema.d.ts index 6f06c0b..3ad53ae 100644 --- a/schema.d.ts +++ b/schema.d.ts @@ -552,6 +552,11 @@ export interface PropertyLike { * If the value is a string, it's the reason for the deprecation. */ deprecated?: boolean | string; + + /** + * Whether the property is read-only. + */ + readonly?: boolean; } export interface ClassField extends PropertyLike { From 06319fb1ab680b500678f7ec82579341501f701d Mon Sep 17 00:00:00 2001 From: MikeMatusz Date: Wed, 22 Mar 2023 11:25:04 -0400 Subject: [PATCH 2/2] chore: build schema --- schema.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/schema.json b/schema.json index 3fd0d81..c533341 100644 --- a/schema.json +++ b/schema.json @@ -133,6 +133,10 @@ "privacy": { "$ref": "#/definitions/Privacy" }, + "readonly": { + "description": "Whether the property is read-only.", + "type": "boolean" + }, "source": { "$ref": "#/definitions/SourceReference" }, @@ -881,6 +885,10 @@ "description": "Whether the parameter is optional. Undefined implies non-optional.", "type": "boolean" }, + "readonly": { + "description": "Whether the property is read-only.", + "type": "boolean" + }, "rest": { "description": "Whether the parameter is a rest parameter. Only the last parameter may be a rest parameter.\nUndefined implies single parameter.", "type": "boolean" @@ -1035,6 +1043,10 @@ "name": { "type": "string" }, + "readonly": { + "description": "Whether the property is read-only.", + "type": "boolean" + }, "source": { "$ref": "#/definitions/SourceReference" },