Skip to content

Commit

Permalink
Mention obsolete property in elements package readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust committed Apr 22, 2022
1 parent 55ffe20 commit 52fcf09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/elements/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ elements.listAll().then(all => {
});
```

For each spec, value is an object with a `spec` property that describes the specification, and an `elements` property that lists elements defined in the spec, as an array of objects with `name` and `interface` properties. The `interface` property is not present for elements that do not implement an interface:
For each spec, value is an object with a `spec` property that describes the specification, and an `elements` property that lists elements defined in the spec, as an array of objects with `name`, `interface` and `obsolete` properties. The `interface` property is not present for elements that do not implement an interface:

```js
const elements = require('@webref/elements');
Expand All @@ -38,6 +38,9 @@ elements.listAll().then(all => {
});
```

The `obsolete` property is a boolean flag, only present (and set to `true`) for elements that are obsolete.


# Guarantees

The following guarantees are provided by this package:
Expand Down

0 comments on commit 52fcf09

Please sign in to comment.