web-features 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -2,6 +2,10 @@
2
2
  interface FeatureData {
3
3
  /** Short name */
4
4
  name: string;
5
+ /** Short description of the feature, as a plain text string */
6
+ description: string;
7
+ /** Short description of the feature, as an HTML string */
8
+ description_html: string;
5
9
  /** Alias identifier */
6
10
  alias?: string | [string, string, ...string[]];
7
11
  /** Specification */
@@ -9,7 +13,7 @@ interface FeatureData {
9
13
  /** caniuse.com identifier */
10
14
  caniuse?: string | [string, string, ...string[]];
11
15
  /** Whether a feature is considered a "baseline" web platform feature and when it achieved that status */
12
- status?: SupportStatus;
16
+ status: SupportStatus;
13
17
  /** Sources of support data for this feature */
14
18
  compat_features?: string[];
15
19
  /** Usage stats */
@@ -19,13 +23,13 @@ type browserIdentifier = "chrome" | "chrome_android" | "edge" | "firefox" | "fir
19
23
  type BaselineHighLow = "high" | "low";
20
24
  interface SupportStatus {
21
25
  /** Whether the feature is Baseline (low substatus), Baseline (high substatus), or not (false) */
22
- baseline?: BaselineHighLow | false;
26
+ baseline: BaselineHighLow | false;
23
27
  /** Date the feature achieved Baseline low status */
24
28
  baseline_low_date?: string;
25
29
  /** Date the feature achieved Baseline high status */
26
30
  baseline_high_date?: string;
27
31
  /** Browser versions that most-recently introduced the feature */
28
- support?: {
32
+ support: {
29
33
  [K in browserIdentifier]?: string;
30
34
  };
31
35
  }