Skip to content

Commit

Permalink
Complete depreciation flag with data from mdn-data
Browse files Browse the repository at this point in the history
  • Loading branch information
frenic committed Apr 24, 2018
1 parent 40e02a1 commit 490a35d
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 39 deletions.
48 changes: 32 additions & 16 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export interface StandardLonghandProperties<TLength = string | 0> {
animationPlayState?: AnimationPlayStateProperty;
animationTimingFunction?: AnimationTimingFunctionProperty;
appearance?: AppearanceProperty;
azimuth?: AzimuthProperty;
backdropFilter?: BackdropFilterProperty;
backfaceVisibility?: BackfaceVisibilityProperty;
backgroundAttachment?: BackgroundAttachmentProperty;
Expand Down Expand Up @@ -123,10 +122,8 @@ export interface StandardLonghandProperties<TLength = string | 0> {
gridAutoFlow?: GridAutoFlowProperty;
gridAutoRows?: GridAutoRowsProperty<TLength>;
gridColumnEnd?: GridColumnEndProperty;
gridColumnGap?: GridColumnGapProperty<TLength>;
gridColumnStart?: GridColumnStartProperty;
gridRowEnd?: GridRowEndProperty;
gridRowGap?: GridRowGapProperty<TLength>;
gridRowStart?: GridRowStartProperty;
gridTemplateAreas?: GridTemplateAreasProperty;
gridTemplateColumns?: GridTemplateColumnsProperty<TLength>;
Expand Down Expand Up @@ -325,7 +322,6 @@ export interface StandardShorthandProperties<TLength = string | 0> {
grid?: GridProperty;
gridArea?: GridAreaProperty;
gridColumn?: GridColumnProperty;
gridGap?: GridGapProperty<TLength>;
gridRow?: GridRowProperty;
gridTemplate?: GridTemplateProperty;
lineClamp?: LineClampProperty;
Expand Down Expand Up @@ -595,6 +591,8 @@ export interface VendorShorthandProperties<TLength = string | 0> {
export interface VendorProperties<TLength = string | 0> extends VendorLonghandProperties<TLength>, VendorShorthandProperties<TLength> {}

export interface ObsoleteProperties<TLength = string | 0> {
/** @deprecated */
azimuth?: AzimuthProperty;
/** @deprecated */
boxDirection?: BoxDirectionProperty;
/** @deprecated */
Expand All @@ -608,6 +606,12 @@ export interface ObsoleteProperties<TLength = string | 0> {
/** @deprecated */
fontVariantAlternates?: FontVariantAlternatesProperty;
/** @deprecated */
gridColumnGap?: GridColumnGapProperty<TLength>;
/** @deprecated */
gridGap?: GridGapProperty<TLength>;
/** @deprecated */
gridRowGap?: GridRowGapProperty<TLength>;
/** @deprecated */
imeMode?: ImeModeProperty;
/** @deprecated */
scrollSnapCoordinate?: ScrollSnapCoordinateProperty<TLength>;
Expand Down Expand Up @@ -793,7 +797,6 @@ export interface StandardLonghandPropertiesHyphen<TLength = string | 0> {
"animation-play-state"?: AnimationPlayStateProperty;
"animation-timing-function"?: AnimationTimingFunctionProperty;
appearance?: AppearanceProperty;
azimuth?: AzimuthProperty;
"backdrop-filter"?: BackdropFilterProperty;
"backface-visibility"?: BackfaceVisibilityProperty;
"background-attachment"?: BackgroundAttachmentProperty;
Expand Down Expand Up @@ -905,10 +908,8 @@ export interface StandardLonghandPropertiesHyphen<TLength = string | 0> {
"grid-auto-flow"?: GridAutoFlowProperty;
"grid-auto-rows"?: GridAutoRowsProperty<TLength>;
"grid-column-end"?: GridColumnEndProperty;
"grid-column-gap"?: GridColumnGapProperty<TLength>;
"grid-column-start"?: GridColumnStartProperty;
"grid-row-end"?: GridRowEndProperty;
"grid-row-gap"?: GridRowGapProperty<TLength>;
"grid-row-start"?: GridRowStartProperty;
"grid-template-areas"?: GridTemplateAreasProperty;
"grid-template-columns"?: GridTemplateColumnsProperty<TLength>;
Expand Down Expand Up @@ -1107,7 +1108,6 @@ export interface StandardShorthandPropertiesHyphen<TLength = string | 0> {
grid?: GridProperty;
"grid-area"?: GridAreaProperty;
"grid-column"?: GridColumnProperty;
"grid-gap"?: GridGapProperty<TLength>;
"grid-row"?: GridRowProperty;
"grid-template"?: GridTemplateProperty;
"line-clamp"?: LineClampProperty;
Expand Down Expand Up @@ -1377,6 +1377,8 @@ export interface VendorShorthandPropertiesHyphen<TLength = string | 0> {
export interface VendorPropertiesHyphen<TLength = string | 0> extends VendorLonghandPropertiesHyphen<TLength>, VendorShorthandPropertiesHyphen<TLength> {}

export interface ObsoletePropertiesHyphen<TLength = string | 0> {
/** @deprecated */
azimuth?: AzimuthProperty;
/** @deprecated */
"box-direction"?: BoxDirectionProperty;
/** @deprecated */
Expand All @@ -1390,6 +1392,12 @@ export interface ObsoletePropertiesHyphen<TLength = string | 0> {
/** @deprecated */
"font-variant-alternates"?: FontVariantAlternatesProperty;
/** @deprecated */
"grid-column-gap"?: GridColumnGapProperty<TLength>;
/** @deprecated */
"grid-gap"?: GridGapProperty<TLength>;
/** @deprecated */
"grid-row-gap"?: GridRowGapProperty<TLength>;
/** @deprecated */
"ime-mode"?: ImeModeProperty;
/** @deprecated */
"scroll-snap-coordinate"?: ScrollSnapCoordinateProperty<TLength>;
Expand Down Expand Up @@ -1579,7 +1587,6 @@ export interface StandardLonghandPropertiesFallback<TLength = string | 0> {
animationPlayState?: AnimationPlayStateProperty | AnimationPlayStateProperty[];
animationTimingFunction?: AnimationTimingFunctionProperty | AnimationTimingFunctionProperty[];
appearance?: AppearanceProperty | AppearanceProperty[];
azimuth?: AzimuthProperty | AzimuthProperty[];
backdropFilter?: BackdropFilterProperty | BackdropFilterProperty[];
backfaceVisibility?: BackfaceVisibilityProperty | BackfaceVisibilityProperty[];
backgroundAttachment?: BackgroundAttachmentProperty | BackgroundAttachmentProperty[];
Expand Down Expand Up @@ -1691,10 +1698,8 @@ export interface StandardLonghandPropertiesFallback<TLength = string | 0> {
gridAutoFlow?: GridAutoFlowProperty | GridAutoFlowProperty[];
gridAutoRows?: GridAutoRowsProperty<TLength> | GridAutoRowsProperty<TLength>[];
gridColumnEnd?: GridColumnEndProperty | GridColumnEndProperty[];
gridColumnGap?: GridColumnGapProperty<TLength> | GridColumnGapProperty<TLength>[];
gridColumnStart?: GridColumnStartProperty | GridColumnStartProperty[];
gridRowEnd?: GridRowEndProperty | GridRowEndProperty[];
gridRowGap?: GridRowGapProperty<TLength> | GridRowGapProperty<TLength>[];
gridRowStart?: GridRowStartProperty | GridRowStartProperty[];
gridTemplateAreas?: GridTemplateAreasProperty | GridTemplateAreasProperty[];
gridTemplateColumns?: GridTemplateColumnsProperty<TLength> | GridTemplateColumnsProperty<TLength>[];
Expand Down Expand Up @@ -1893,7 +1898,6 @@ export interface StandardShorthandPropertiesFallback<TLength = string | 0> {
grid?: GridProperty | GridProperty[];
gridArea?: GridAreaProperty | GridAreaProperty[];
gridColumn?: GridColumnProperty | GridColumnProperty[];
gridGap?: GridGapProperty<TLength> | GridGapProperty<TLength>[];
gridRow?: GridRowProperty | GridRowProperty[];
gridTemplate?: GridTemplateProperty | GridTemplateProperty[];
lineClamp?: LineClampProperty | LineClampProperty[];
Expand Down Expand Up @@ -2163,6 +2167,8 @@ export interface VendorShorthandPropertiesFallback<TLength = string | 0> {
export interface VendorPropertiesFallback<TLength = string | 0> extends VendorLonghandPropertiesFallback<TLength>, VendorShorthandPropertiesFallback<TLength> {}

export interface ObsoletePropertiesFallback<TLength = string | 0> {
/** @deprecated */
azimuth?: AzimuthProperty | AzimuthProperty[];
/** @deprecated */
boxDirection?: BoxDirectionProperty | BoxDirectionProperty[];
/** @deprecated */
Expand All @@ -2176,6 +2182,12 @@ export interface ObsoletePropertiesFallback<TLength = string | 0> {
/** @deprecated */
fontVariantAlternates?: FontVariantAlternatesProperty | FontVariantAlternatesProperty[];
/** @deprecated */
gridColumnGap?: GridColumnGapProperty<TLength> | GridColumnGapProperty<TLength>[];
/** @deprecated */
gridGap?: GridGapProperty<TLength> | GridGapProperty<TLength>[];
/** @deprecated */
gridRowGap?: GridRowGapProperty<TLength> | GridRowGapProperty<TLength>[];
/** @deprecated */
imeMode?: ImeModeProperty | ImeModeProperty[];
/** @deprecated */
scrollSnapCoordinate?: ScrollSnapCoordinateProperty<TLength> | ScrollSnapCoordinateProperty<TLength>[];
Expand Down Expand Up @@ -2365,7 +2377,6 @@ export interface StandardLonghandPropertiesHyphenFallback<TLength = string | 0>
"animation-play-state"?: AnimationPlayStateProperty | AnimationPlayStateProperty[];
"animation-timing-function"?: AnimationTimingFunctionProperty | AnimationTimingFunctionProperty[];
appearance?: AppearanceProperty | AppearanceProperty[];
azimuth?: AzimuthProperty | AzimuthProperty[];
"backdrop-filter"?: BackdropFilterProperty | BackdropFilterProperty[];
"backface-visibility"?: BackfaceVisibilityProperty | BackfaceVisibilityProperty[];
"background-attachment"?: BackgroundAttachmentProperty | BackgroundAttachmentProperty[];
Expand Down Expand Up @@ -2477,10 +2488,8 @@ export interface StandardLonghandPropertiesHyphenFallback<TLength = string | 0>
"grid-auto-flow"?: GridAutoFlowProperty | GridAutoFlowProperty[];
"grid-auto-rows"?: GridAutoRowsProperty<TLength> | GridAutoRowsProperty<TLength>[];
"grid-column-end"?: GridColumnEndProperty | GridColumnEndProperty[];
"grid-column-gap"?: GridColumnGapProperty<TLength> | GridColumnGapProperty<TLength>[];
"grid-column-start"?: GridColumnStartProperty | GridColumnStartProperty[];
"grid-row-end"?: GridRowEndProperty | GridRowEndProperty[];
"grid-row-gap"?: GridRowGapProperty<TLength> | GridRowGapProperty<TLength>[];
"grid-row-start"?: GridRowStartProperty | GridRowStartProperty[];
"grid-template-areas"?: GridTemplateAreasProperty | GridTemplateAreasProperty[];
"grid-template-columns"?: GridTemplateColumnsProperty<TLength> | GridTemplateColumnsProperty<TLength>[];
Expand Down Expand Up @@ -2679,7 +2688,6 @@ export interface StandardShorthandPropertiesHyphenFallback<TLength = string | 0>
grid?: GridProperty | GridProperty[];
"grid-area"?: GridAreaProperty | GridAreaProperty[];
"grid-column"?: GridColumnProperty | GridColumnProperty[];
"grid-gap"?: GridGapProperty<TLength> | GridGapProperty<TLength>[];
"grid-row"?: GridRowProperty | GridRowProperty[];
"grid-template"?: GridTemplateProperty | GridTemplateProperty[];
"line-clamp"?: LineClampProperty | LineClampProperty[];
Expand Down Expand Up @@ -2951,6 +2959,8 @@ export interface VendorShorthandPropertiesHyphenFallback<TLength = string | 0> {
export interface VendorPropertiesHyphenFallback<TLength = string | 0> extends VendorLonghandPropertiesHyphenFallback<TLength>, VendorShorthandPropertiesHyphenFallback<TLength> {}

export interface ObsoletePropertiesHyphenFallback<TLength = string | 0> {
/** @deprecated */
azimuth?: AzimuthProperty | AzimuthProperty[];
/** @deprecated */
"box-direction"?: BoxDirectionProperty | BoxDirectionProperty[];
/** @deprecated */
Expand All @@ -2964,6 +2974,12 @@ export interface ObsoletePropertiesHyphenFallback<TLength = string | 0> {
/** @deprecated */
"font-variant-alternates"?: FontVariantAlternatesProperty | FontVariantAlternatesProperty[];
/** @deprecated */
"grid-column-gap"?: GridColumnGapProperty<TLength> | GridColumnGapProperty<TLength>[];
/** @deprecated */
"grid-gap"?: GridGapProperty<TLength> | GridGapProperty<TLength>[];
/** @deprecated */
"grid-row-gap"?: GridRowGapProperty<TLength> | GridRowGapProperty<TLength>[];
/** @deprecated */
"ime-mode"?: ImeModeProperty | ImeModeProperty[];
/** @deprecated */
"scroll-snap-coordinate"?: ScrollSnapCoordinateProperty<TLength> | ScrollSnapCoordinateProperty<TLength>[];
Expand Down

0 comments on commit 490a35d

Please sign in to comment.