1+ import type { processColor } from "react-native" ;
2+
13import type {
24 MediaFeatureComparison ,
35 MediaFeatureNameFor_MediaFeatureId ,
4- } from 'lightningcss' ;
5- import type { processColor } from 'react-native' ;
6- import type { AnyMap , HybridObject } from 'react-native-nitro-modules' ;
6+ } from "lightningcss" ;
7+ import type { AnyMap , HybridObject } from "react-native-nitro-modules" ;
78
89export type HybridStyleRegistry = StyleRegistry & RawStyleRegistry ;
910
1011export interface StyleRegistry
11- extends HybridObject < { ios : ' c++' ; android : ' c++' } > {
12+ extends HybridObject < { ios : " c++" ; android : " c++" } > {
1213 set ( className : string , styleRule : StyleRule ) : void ;
1314 getDeclarations (
1415 componentId : string ,
1516 classNames : string ,
1617 variableScope : string ,
17- containerScope : string
18+ containerScope : string ,
1819 ) : Declarations ;
1920 registerComponent (
2021 componentId : string ,
2122 rerender : ( ) => void ,
2223 classNames : string ,
2324 variableScope : string ,
24- containerScope : string
25+ containerScope : string ,
2526 ) : Styled ;
2627 deregisterComponent ( componentId : string ) : void ;
2728 updateComponentInlineStyleKeys (
2829 componentId : string ,
29- inlineStyleKeys : string [ ]
30+ inlineStyleKeys : string [ ] ,
3031 ) : void ;
3132 updateComponentState (
3233 componentId : string ,
33- type : UpdateComponentStateFns
34+ type : UpdateComponentStateFns ,
3435 ) : void ;
3536 unlinkComponent ( componentId : string ) : void ;
3637
3738 setWindowDimensions (
3839 width : number ,
3940 height : number ,
4041 scale : number ,
41- fontScale : number
42+ fontScale : number ,
4243 ) : void ;
4344}
4445
@@ -52,7 +53,7 @@ export interface RawStyleRegistry {
5253
5354/******************************* States *********************************/
5455
55- export type Declarations = {
56+ export interface Declarations {
5657 classNames : string ;
5758 variableScope ?: string ;
5859 containerScope ?: string ;
@@ -63,15 +64,15 @@ export type Declarations = {
6364 focus ?: boolean ;
6465 hover ?: boolean ;
6566 requiresRuntimeCheck ?: [ string , RuntimeGuard ] [ ] ;
66- } ;
67+ }
6768
6869type RuntimeGuard = (
6970 componentId : string ,
7071 props : AnyMap ,
71- isDisabled : boolean
72+ isDisabled : boolean ,
7273) => boolean ;
7374
74- export type Styled = {
75+ export interface Styled {
7576 style ?: AnyMap [ ] ;
7677 importantStyle ?: AnyMap ;
7778 props ?: AnyMap ;
@@ -85,16 +86,16 @@ export type Styled = {
8586 onHoverOut ?: ( ) => void ;
8687 onFocus ?: ( ) => void ;
8788 onBlur ?: ( ) => void ;
88- } ;
89+ }
8990
9091type UpdateComponentStateFns =
91- | ' onPress'
92- | ' onPressIn'
93- | ' onPressOut'
94- | ' onHoverIn'
95- | ' onHoverOut'
96- | ' onFocus'
97- | ' onBlur' ;
92+ | " onPress"
93+ | " onPressIn"
94+ | " onPressOut"
95+ | " onHoverIn"
96+ | " onHoverOut"
97+ | " onFocus"
98+ | " onBlur" ;
9899
99100export type StyleConfig = [
100101 source : string ,
@@ -132,7 +133,7 @@ export type MediaCondition =
132133 // Comparison
133134 | [
134135 MediaFeatureComparison ,
135- MediaFeatureNameFor_MediaFeatureId | 'dir' ,
136+ MediaFeatureNameFor_MediaFeatureId ,
136137 StyleDescriptor ,
137138 ]
138139 // [Start, End]
0 commit comments