We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a9bea2 commit 32a4bf8Copy full SHA for 32a4bf8
packages/react-native-web/src/exports/StyleSheet/index.js
@@ -67,7 +67,7 @@ const absoluteFill = create({ x: { ...absoluteFillObject } }).x;
67
/**
68
* create
69
*/
70
-function create(styles: Object): {| [key: string]: { [key: string]: any } |} {
+function create<T: Object>(styles: T): $ReadOnly<T> {
71
Object.keys(styles).forEach((key) => {
72
const styleObj = styles[key];
73
// Only compile at runtime if the style is not already compiled
0 commit comments