-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathglobal.d.ts
56 lines (49 loc) · 1.58 KB
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// import type * as React from "react";
// import type * as CSS from "csstype";
// export type { CSS, React };
import 'csstype';
import 'react';
declare module 'csstype' {
import * as CSS from 'csstype';
interface Properties extends CSS.Properties {
/** `@expo/html-elements` */
marginHorizontal?: string | number;
/** `@expo/html-elements` */
marginVertical?: string | number;
/** `@expo/html-elements` */
paddingVertical?: string | number;
/** `@expo/html-elements` */
paddingHorizontal?: string | number;
}
}
declare module 'react' {
import * as React from 'react';
interface CSSProperties extends React.CSSProperties {
/** `@expo/html-elements` */
marginHorizontal?: string | number;
/** `@expo/html-elements` */
marginVertical?: string | number;
/** `@expo/html-elements` */
paddingVertical?: string | number;
/** `@expo/html-elements` */
paddingHorizontal?: TextStyle['marginHorizontal'];
}
interface HTMLAttributes<T> extends Omit<React.HTMLAttributes<T>, 'style'> {
/** `@expo/html-elements` */
// interface HTMLAttributes<T> extends AriaAttributes, DOMAttributes<T> {
// extends React's HTMLAttributes
style?: StyleProp<React.CSSProperties>;
}
}
import { TextStyle } from '@bacons/react-views';
import { StyleProp } from 'react-native';
declare module '*.mdx' {
function Component(props: any): JSX.Element;
export default Component;
}
declare module '*.svg' {
import React from 'react';
import { SvgProps } from 'react-native-svg';
const content: React.FC<SvgProps>;
export default content;
}