Commit eac50523 authored by David Sveningsson's avatar David Sveningsson

fix(meta): make all meta properties optional in type declaration

In practice all where optional but the type never reflected this.
parent 1f98caed
Pipeline #128399030 passed with stages
in 8 minutes and 56 seconds
......@@ -23,33 +23,33 @@ Each entry can contain the following properties:
```typescript
export interface MetaElement {
/* content categories */
metadata: boolean | PropertyExpression;
flow: boolean | PropertyExpression;
sectioning: boolean | PropertyExpression;
heading: boolean | PropertyExpression;
phrasing: boolean | PropertyExpression;
embedded: boolean | PropertyExpression;
interactive: boolean | PropertyExpression;
metadata?: boolean | PropertyExpression;
flow?: boolean | PropertyExpression;
sectioning?: boolean | PropertyExpression;
heading?: boolean | PropertyExpression;
phrasing?: boolean | PropertyExpression;
embedded?: boolean | PropertyExpression;
interactive?: boolean | PropertyExpression;
/* element properties */
deprecated: boolean | string | DeprecatedElement;
foreign: boolean;
void: boolean;
transparent: boolean;
scriptSupporting: boolean;
form: boolean;
deprecated?: boolean | string | DeprecatedElement;
foreign?: boolean;
void?: boolean;
transparent?: boolean;
scriptSupporting?: boolean;
form?: boolean;
/* attributes */
deprecatedAttributes: string[];
requiredAttributes: string[];
attributes: PermittedAttribute;
deprecatedAttributes?: string[];
requiredAttributes?: string[];
attributes?: PermittedAttribute;
/* permitted data */
permittedContent: Permitted;
permittedDescendants: Permitted;
permittedOrder: PermittedOrder;
requiredAncestors: string[];
requiredContent: string[];
permittedContent?: Permitted;
permittedDescendants?: Permitted;
permittedOrder?: PermittedOrder;
requiredAncestors?: string[];
requiredContent?: string[];
/* inheritance */
inherit?: string;
......
......@@ -25,22 +25,22 @@ export interface MetaData {
inherit?: string;
/* content categories */
metadata: boolean | PropertyExpression;
flow: boolean | PropertyExpression;
sectioning: boolean | PropertyExpression;
heading: boolean | PropertyExpression;
phrasing: boolean | PropertyExpression;
embedded: boolean | PropertyExpression;
interactive: boolean | PropertyExpression;
metadata?: boolean | PropertyExpression;
flow?: boolean | PropertyExpression;
sectioning?: boolean | PropertyExpression;
heading?: boolean | PropertyExpression;
phrasing?: boolean | PropertyExpression;
embedded?: boolean | PropertyExpression;
interactive?: boolean | PropertyExpression;
/* element properties */
deprecated: boolean | string | DeprecatedElement;
foreign: boolean;
void: boolean;
transparent: boolean;
deprecated?: boolean | string | DeprecatedElement;
foreign?: boolean;
void?: boolean;
transparent?: boolean;
implicitClosed?: string[];
scriptSupporting: boolean;
form: boolean;
scriptSupporting?: boolean;
form?: boolean;
/* attribute */
deprecatedAttributes?: string[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment