@@ -134,21 +134,22 @@ output += `export type Pseudos = AdvancedPseudos | SimplePseudos\n`
134134
135135output += `export interface StandardProperties extends StandardLonghandProperties,StandardShorthandProperties{}
136136export interface VendorProperties extends VendorLonghandProperties,VendorShorthandProperties{}
137- export interface Properties extends StandardProperties,VendorProperties{}\n`
137+ export interface Properties extends StandardProperties,VendorProperties{}
138+ export type Globals = "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset"\n`
138139
139140output += `export namespace Property {\n`
140141for ( const [ property , value ] of standardLonghandProperties ) {
141- output += ` export type ${ toPascalCase ( property ) } = ${ convertType ( value . syntax , syntaxes ) } ; \n`
142+ output += ` export type ${ toPascalCase ( property ) } = ${ convertType ( value . syntax , syntaxes ) } | Globals | (string & {}) \n`
142143}
143144for ( const [ property , value ] of standardShorthandProperties ) {
144- output += ` export type ${ toPascalCase ( property ) } = ${ convertType ( value . syntax , syntaxes ) } ; \n`
145+ output += ` export type ${ toPascalCase ( property ) } = ${ convertType ( value . syntax , syntaxes ) } | Globals | (string & {}) \n`
145146}
146147
147148for ( const [ property , value ] of vendorLonghandProperties ) {
148- output += ` export type ${ toPascalCase ( property ) } = ${ convertType ( value . syntax , syntaxes ) } ; \n`
149+ output += ` export type ${ toPascalCase ( property ) } = ${ convertType ( value . syntax , syntaxes ) } | Globals | (string & {}) \n`
149150}
150151for ( const [ property , value ] of vendorShorthandProperties ) {
151- output += ` export type ${ toPascalCase ( property ) } = ${ convertType ( value . syntax , syntaxes ) } ; \n`
152+ output += ` export type ${ toPascalCase ( property ) } = ${ convertType ( value . syntax , syntaxes ) } | Globals | (string & {}) \n`
152153}
153154
154155output += `}\n`
0 commit comments