@modern-js/types 3.9.3 → 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 +1 -21
- package/package.json +1 -1
- package/packages/hoist-non-react-statics.d.ts +10 -8
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
|
-
|
|
|
148
|
-
| SSGSingleEntryOptions
|
|
149
|
-
| SSGSingleEntryOptionsFactory;
|
|
129
|
+
boolean | SSGSingleEntryOptions | SSGSingleEntryOptionsFactory;
|
|
150
130
|
|
|
151
131
|
export type { Merge } from 'type-fest';
|
package/package.json
CHANGED
|
@@ -45,14 +45,16 @@ declare namespace hoistNonReactStatics {
|
|
|
45
45
|
[key: string]: true;
|
|
46
46
|
} = {},
|
|
47
47
|
> = {
|
|
48
|
-
[
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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' {
|