@modern-js/types 3.9.2 → 3.10.0

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/cli/index.d.ts CHANGED
@@ -1,21 +1,3 @@
1
- import type { Config as JestConfigTypes } from '@jest/types';
2
-
3
- export type JestConfig = JestConfigTypes.Config;
4
-
5
- export interface TestConfig {
6
- /**
7
- * Decide which transformer will be used to compile file
8
- * @default 'babel-jest'
9
- */
10
- transformer?: 'babel-jest' | 'ts-jest';
11
-
12
- /**
13
- * Original jest config
14
- * Doc: https://jestjs.io/docs/configuration
15
- */
16
- jest?: JestConfig | ((jestConfig: JestConfig) => JestConfig);
17
- }
18
-
19
1
  /**
20
2
  * Bundle entrypoint
21
3
  */
@@ -144,8 +126,6 @@ export type SSGMultiEntryOptions = Record<
144
126
  >;
145
127
 
146
128
  export type SSGConfig =
147
- | boolean
148
- | SSGSingleEntryOptions
149
- | SSGSingleEntryOptionsFactory;
129
+ boolean | SSGSingleEntryOptions | SSGSingleEntryOptionsFactory;
150
130
 
151
131
  export type { Merge } from 'type-fest';
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.9.2",
18
+ "version": "3.10.0",
19
19
  "types": "./index.d.ts",
20
20
  "exports": {
21
21
  ".": {
@@ -45,14 +45,16 @@ declare namespace hoistNonReactStatics {
45
45
  [key: string]: true;
46
46
  } = {},
47
47
  > = {
48
- [key in Exclude<
49
- keyof S,
50
- S extends React.MemoExoticComponent<any>
51
- ? keyof MEMO_STATICS | keyof C
52
- : S extends React.ForwardRefExoticComponent<any>
53
- ? keyof FORWARD_REF_STATICS | keyof C
54
- : keyof REACT_STATICS | keyof KNOWN_STATICS | keyof C
55
- >]: S[key];
48
+ [
49
+ key in Exclude<
50
+ keyof S,
51
+ S extends React.MemoExoticComponent<any>
52
+ ? keyof MEMO_STATICS | keyof C
53
+ : S extends React.ForwardRefExoticComponent<any>
54
+ ? keyof FORWARD_REF_STATICS | keyof C
55
+ : keyof REACT_STATICS | keyof KNOWN_STATICS | keyof C
56
+ >
57
+ ]: S[key];
56
58
  };
57
59
  }
58
60
  declare module 'hoist-non-react-statics' {