Skip to content

Commit 0139d0a

Browse files
authored
Update flow-typed definitions
1 parent a011391 commit 0139d0a

37 files changed

+2013
-518
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// flow-typed signature: c81513856b16f61053c32496bbd0d52f
2+
// flow-typed version: <<STUB>>/@babel/eslint-parser_v^7.27.0/flow_v0.203.1
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@babel/eslint-parser'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@babel/eslint-parser' {
17+
declare module.exports: any;
18+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// flow-typed signature: 33920b81d486ea74736fd0340c21d364
2+
// flow-typed version: <<STUB>>/@chromatic-com/storybook_v^3.2.6/flow_v0.203.1
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@chromatic-com/storybook'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@chromatic-com/storybook' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
declare module '@chromatic-com/storybook/dist' {
26+
declare module.exports: any;
27+
}
28+
29+
declare module '@chromatic-com/storybook/dist/preset' {
30+
declare module.exports: any;
31+
}
32+
33+
declare module '@chromatic-com/storybook/preset' {
34+
declare module.exports: any;
35+
}
36+
37+
// Filename aliases
38+
declare module '@chromatic-com/storybook/dist/index' {
39+
declare module.exports: $Exports<'@chromatic-com/storybook/dist'>;
40+
}
41+
declare module '@chromatic-com/storybook/dist/index.js' {
42+
declare module.exports: $Exports<'@chromatic-com/storybook/dist'>;
43+
}
44+
declare module '@chromatic-com/storybook/dist/preset.js' {
45+
declare module.exports: $Exports<'@chromatic-com/storybook/dist/preset'>;
46+
}
47+
declare module '@chromatic-com/storybook/preset.js' {
48+
declare module.exports: $Exports<'@chromatic-com/storybook/preset'>;
49+
}

flow-typed/npm/@reduxjs/toolkit_v1.x.x.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
// flow-typed signature: 1db74cd54cd0882d2e4291e7b6ba667a
2-
// flow-typed version: 3a05283656/@reduxjs/toolkit_v1.x.x/flow_>=v0.104.x
1+
// flow-typed signature: 7193e451973000caef07d1ec202ed177
2+
// flow-typed version: a349be2d72/@reduxjs/toolkit_v1.x.x/flow_>=v0.142.x
33

44
declare module '@reduxjs/toolkit' {
5+
import type { Action, Reducer } from 'redux';
56
// These types are copied directly from the redux libdef.
67
// Importing them in this libdef causes a loss in type coverage.
7-
// import type { Action, Reducer } from 'redux';
8-
9-
declare type Action<T> = {
10-
type: T,
11-
...
12-
};
13-
14-
declare type Reducer<S, A> = (state: S | void, action: A) => S;
158

169
declare type DispatchAPI<A> = (action: A) => A;
1710

0 commit comments

Comments
 (0)