@@ -150,10 +150,11 @@ export declare namespace ContentTree {
150150 type : "tweet" ;
151151 html : string ;
152152 }
153+ type FlourishLayoutWidth = Extract < LayoutWidth , "full-grid" | "in-line" > ;
153154 interface Flourish extends Node {
154155 type : "flourish" ;
155156 id : string ;
156- layoutWidth : string ;
157+ layoutWidth : FlourishLayoutWidth ;
157158 flourishType : string ;
158159 description ?: string ;
159160 timestamp ?: string ;
@@ -224,6 +225,7 @@ export declare namespace ContentTree {
224225 sortable : boolean ;
225226 sortType : 'text' | 'number' | 'date' | 'currency' | 'percent' ;
226227 } ;
228+ type TableLayoutWidth = Extract < LayoutWidth , 'auto' | 'full-grid' | 'inset-left' | 'inset-right' | 'full-bleed' > ;
227229 interface TableCaption extends Parent {
228230 type : 'table-caption' ;
229231 children : Phrasing [ ] ;
@@ -251,7 +253,7 @@ export declare namespace ContentTree {
251253 type : 'table' ;
252254 stripes : boolean ;
253255 compact : boolean ;
254- layoutWidth : 'auto' | 'full-grid' | 'inset-left' | 'inset-right' | 'full-bleed' ;
256+ layoutWidth : TableLayoutWidth ;
255257 collapseAfterHowManyRows ?: number ;
256258 responsiveStyle : 'overflow' | 'flat' | 'scroll' ;
257259 children : [ TableCaption , TableBody , TableFooter ] | [ TableCaption , TableBody ] | [ TableBody , TableFooter ] | [ TableBody ] ;
@@ -428,10 +430,11 @@ export declare namespace ContentTree {
428430 type : "tweet" ;
429431 html : string ;
430432 }
433+ type FlourishLayoutWidth = Extract < LayoutWidth , "full-grid" | "in-line" > ;
431434 interface Flourish extends Node {
432435 type : "flourish" ;
433436 id : string ;
434- layoutWidth : string ;
437+ layoutWidth : FlourishLayoutWidth ;
435438 flourishType : string ;
436439 description ?: string ;
437440 timestamp ?: string ;
@@ -502,6 +505,7 @@ export declare namespace ContentTree {
502505 sortable : boolean ;
503506 sortType : 'text' | 'number' | 'date' | 'currency' | 'percent' ;
504507 } ;
508+ type TableLayoutWidth = Extract < LayoutWidth , 'auto' | 'full-grid' | 'inset-left' | 'inset-right' | 'full-bleed' > ;
505509 interface TableCaption extends Parent {
506510 type : 'table-caption' ;
507511 children : Phrasing [ ] ;
@@ -529,7 +533,7 @@ export declare namespace ContentTree {
529533 type : 'table' ;
530534 stripes : boolean ;
531535 compact : boolean ;
532- layoutWidth : 'auto' | 'full-grid' | 'inset-left' | 'inset-right' | 'full-bleed' ;
536+ layoutWidth : TableLayoutWidth ;
533537 collapseAfterHowManyRows ?: number ;
534538 responsiveStyle : 'overflow' | 'flat' | 'scroll' ;
535539 children : [ TableCaption , TableBody , TableFooter ] | [ TableCaption , TableBody ] | [ TableBody , TableFooter ] | [ TableBody ] ;
@@ -704,10 +708,11 @@ export declare namespace ContentTree {
704708 id : string ;
705709 type : "tweet" ;
706710 }
711+ type FlourishLayoutWidth = Extract < LayoutWidth , "full-grid" | "in-line" > ;
707712 interface Flourish extends Node {
708713 type : "flourish" ;
709714 id : string ;
710- layoutWidth : string ;
715+ layoutWidth : FlourishLayoutWidth ;
711716 flourishType : string ;
712717 description ?: string ;
713718 timestamp ?: string ;
@@ -774,6 +779,7 @@ export declare namespace ContentTree {
774779 sortable : boolean ;
775780 sortType : 'text' | 'number' | 'date' | 'currency' | 'percent' ;
776781 } ;
782+ type TableLayoutWidth = Extract < LayoutWidth , 'auto' | 'full-grid' | 'inset-left' | 'inset-right' | 'full-bleed' > ;
777783 interface TableCaption extends Parent {
778784 type : 'table-caption' ;
779785 children : Phrasing [ ] ;
@@ -801,7 +807,7 @@ export declare namespace ContentTree {
801807 type : 'table' ;
802808 stripes : boolean ;
803809 compact : boolean ;
804- layoutWidth : 'auto' | 'full-grid' | 'inset-left' | 'inset-right' | 'full-bleed' ;
810+ layoutWidth : TableLayoutWidth ;
805811 collapseAfterHowManyRows ?: number ;
806812 responsiveStyle : 'overflow' | 'flat' | 'scroll' ;
807813 children : [ TableCaption , TableBody , TableFooter ] | [ TableCaption , TableBody ] | [ TableBody , TableFooter ] | [ TableBody ] ;
@@ -971,10 +977,11 @@ export declare namespace ContentTree {
971977 type : "tweet" ;
972978 html ?: string ;
973979 }
980+ type FlourishLayoutWidth = Extract < LayoutWidth , "full-grid" | "in-line" > ;
974981 interface Flourish extends Node {
975982 type : "flourish" ;
976983 id : string ;
977- layoutWidth : string ;
984+ layoutWidth : FlourishLayoutWidth ;
978985 flourishType : string ;
979986 description ?: string ;
980987 timestamp ?: string ;
@@ -1045,6 +1052,7 @@ export declare namespace ContentTree {
10451052 sortable : boolean ;
10461053 sortType : 'text' | 'number' | 'date' | 'currency' | 'percent' ;
10471054 } ;
1055+ type TableLayoutWidth = Extract < LayoutWidth , 'auto' | 'full-grid' | 'inset-left' | 'inset-right' | 'full-bleed' > ;
10481056 interface TableCaption extends Parent {
10491057 type : 'table-caption' ;
10501058 children : Phrasing [ ] ;
@@ -1072,7 +1080,7 @@ export declare namespace ContentTree {
10721080 type : 'table' ;
10731081 stripes : boolean ;
10741082 compact : boolean ;
1075- layoutWidth : 'auto' | 'full-grid' | 'inset-left' | 'inset-right' | 'full-bleed' ;
1083+ layoutWidth : TableLayoutWidth ;
10761084 collapseAfterHowManyRows ?: number ;
10771085 responsiveStyle : 'overflow' | 'flat' | 'scroll' ;
10781086 children : [ TableCaption , TableBody , TableFooter ] | [ TableCaption , TableBody ] | [ TableBody , TableFooter ] | [ TableBody ] ;
0 commit comments