File tree Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " statebuilder " : patch
3
+ ---
4
+
5
+ perf: improve type resolution performance
Original file line number Diff line number Diff line change 1
- import { DEV } from 'solid-js' ;
2
1
import {
3
2
ApiDefinitionCreator ,
4
3
GenericStoreApi ,
@@ -124,11 +123,6 @@ export function resolve<
124
123
return resolvedStore ;
125
124
}
126
125
127
- type PluginCallback < S extends GenericStoreApi , R > = (
128
- storeApi : S ,
129
- context ?: PluginContext ,
130
- ) => R ;
131
-
132
126
type PluginCreatorOptions = {
133
127
name : string ;
134
128
dependencies ?: string [ ] ;
Original file line number Diff line number Diff line change @@ -10,22 +10,22 @@ export type GenericStoreApi<
10
10
set : Setter ;
11
11
} ;
12
12
13
- export type ApiDefinitionCreator <
13
+ export interface ApiDefinitionCreator <
14
14
TStoreApi extends GenericStoreApi ,
15
15
TSignalExtension extends { } = { } ,
16
- > = StoreApiDefinition < TStoreApi , TSignalExtension > & {
16
+ > extends StoreApiDefinition < TStoreApi , TSignalExtension > {
17
17
extend < TExtendedSignal extends { } | void > (
18
18
createPlugin : ( ctx : TStoreApi & TSignalExtension ) => TExtendedSignal ,
19
19
) : ApiDefinitionCreator <
20
20
TStoreApi ,
21
- Wrap < TExtendedSignal & Omit < TSignalExtension , keyof TExtendedSignal > >
21
+ TExtendedSignal & Omit < TSignalExtension , keyof TExtendedSignal >
22
22
> ;
23
- } ;
23
+ }
24
24
25
- export type StoreApiDefinition <
25
+ export interface StoreApiDefinition <
26
26
TStoreApi extends GenericStoreApi ,
27
27
TStoreExtension = unknown ,
28
- > = {
28
+ > {
29
29
[ $CREATOR ] : {
30
30
name : string ;
31
31
plugins : Array <
@@ -34,7 +34,7 @@ export type StoreApiDefinition<
34
34
> ;
35
35
factory : ( ) => TStoreApi ;
36
36
} ;
37
- } ;
37
+ }
38
38
39
39
type MergeStoreProps <
40
40
TStoreApi extends GenericStoreApi ,
You can’t perform that action at this time.
0 commit comments