xref: /expo/packages/expo/types/global.d.ts (revision a2441f5f)
1/// <reference types="node" />
2
3// Extend the NodeJS namespace
4declare namespace NodeJS {
5  interface ProcessEnv {
6    readonly NODE_ENV: 'development' | 'production' | 'test';
7  }
8}
9
10// Create types for CSS modules
11declare module '*.module.css' {
12  /** **Experimental:** Import styles that can be used with `react-native-web` components, using the `style` prop. */
13  export const unstable_styles: { readonly [key: string]: object };
14
15  const classes: { readonly [key: string]: string };
16  export default classes;
17}
18
19declare module '*.module.sass' {
20  /** **Experimental:** Import styles that can be used with `react-native-web` components, using the `style` prop. */
21  export const unstable_styles: { readonly [key: string]: object };
22
23  const classes: { readonly [key: string]: string };
24  export default classes;
25}
26
27declare module '*.module.scss' {
28  /** **Experimental:** Import styles that can be used with `react-native-web` components, using the `style` prop. */
29  export const unstable_styles: { readonly [key: string]: object };
30
31  const classes: { readonly [key: string]: string };
32  export default classes;
33}
34
35// Allow for css imports, but don't export anything
36declare module '*.css';
37declare module '*.sass';
38declare module '*.scss';
39