create-packer 1.35.7 → 1.35.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.35.7",
3
+ "version": "1.35.8",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -2,25 +2,28 @@
2
2
  import 'styled-components'
3
3
  import { themeType } from './shared/theme'
4
4
 
5
- declare module '*.svg' {
6
- const content: string
7
- export default content
8
- }
9
- declare module '*.svg?react' {
10
- const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>
11
- export default ReactComponent
12
- }
5
+ declare global {
6
+ declare module 'styled-components' {
7
+ export interface DefaultTheme extends themeType {}
8
+ }
13
9
 
14
- declare module 'styled-components' {
15
- export interface DefaultTheme extends themeType {}
16
- }
10
+ interface ImportMetaEnv {
11
+ // import.meta.env.PUBLIC_FOO
12
+ readonly PUBLIC_BASE_URL: string
13
+ readonly PUBLIC_API_HOST: string
14
+ }
17
15
 
18
- interface ImportMetaEnv {
19
- // import.meta.env.PUBLIC_FOO
20
- readonly PUBLIC_BASE_URL: string
21
- readonly PUBLIC_API_HOST: string
22
- }
16
+ interface ImportMeta {
17
+ readonly env: ImportMetaEnv
18
+ }
19
+
20
+ declare module '*.svg' {
21
+ const content: string
22
+ export default content
23
+ }
23
24
 
24
- interface ImportMeta {
25
- readonly env: ImportMetaEnv
25
+ declare module '*.svg?react' {
26
+ const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement>>
27
+ export default ReactComponent
28
+ }
26
29
  }