Skip to content

Commit

Permalink
feat: add readonly flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Dec 21, 2021
1 parent 6a00acf commit 28dc524
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ export interface Attribute {
* If the value is a string, it's the reason for the deprecation.
*/
deprecated?: boolean|string;

/**
* Whether the attribute is read-only.
*/
readonly?: boolean;
}

export interface Event {
Expand Down Expand Up @@ -554,6 +559,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 {
Expand Down

0 comments on commit 28dc524

Please sign in to comment.