Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

types

v0.0.3arrow_drop_down
v0.0.3
v0.0.2
v0.0.1
STATUS
None
DOWNLOADS
53
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
9 months ago
SIZE
N/A
Types for the TypeScript compiler.
1 contributor
Install types as a package?
Copied
npm i @bit/bit.envs.types
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Files
  • index.d.ts
  • tsconfig.json
index.d.ts
72 Lines(54 sloc)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/// <reference types="node" />
/// <reference types="react" />
/// <reference types="react-dom" />

declare namespace NodeJS {
    interface ProcessEnv {
      readonly NODE_ENV: 'development' | 'production' | 'test';
      readonly PUBLIC_URL: string;
    }
  }
  
  declare module '*.bmp' {
    const src: string;
    export default src;
  }
  
  declare module '*.gif' {
    const src: string;
    export default src;
  }
  
  declare module '*.jpg' {
    const src: string;
    export default src;
  }
  
  declare module '*.jpeg' {
    const src: string;
    export default src;
  }
  
  declare module '*.png' {
    const src: string;
    export default src;
  }
  
  declare module '*.webp' {
      const src: string;
      export default src;
  }
  
  declare module '*.ico' {
    const image: string;
    export default image;
  }
  
  
  declare module '*.svg' {
    import * as React from 'react';
  
    export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
  
    const src: string;
    export default src;
  }
  
  
  declare module '*.css' {
    const classes: { readonly [key: string]: string };
    export default classes;
  }
  
  declare module '*.scss' {
    const classes: { readonly [key: string]: string };
    export default classes;
  }
  
  declare module '*.sass' {
    const classes: { readonly [key: string]: string };
    export default classes;
  }