Skip to content

Commit a3f42e6

Browse files
committed
Updates flow-bin
1 parent f2ddf17 commit a3f42e6

8 files changed

+14
-14
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"babel-plugin-tester": "^9.2.0",
2828
"eslint": "^7.8.0",
2929
"eslint-config-canonical": "^23.0.1",
30-
"flow-bin": "^0.131.0",
30+
"flow-bin": "^0.132.0",
3131
"jest": "^26.4.2",
3232
"postcss-less": "^3.1.4",
3333
"postcss-nested": "^4.2.3",

src/createObjectExpression.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ type InputObjectType = {
1313
* Creates an AST representation of an InputObjectType shape object.
1414
*/
1515
const createObjectExpression = (
16-
types: BabelTypes,
16+
types: typeof BabelTypes,
1717
object: InputObjectType,
18-
): ObjectExpression => {
18+
): typeof ObjectExpression => {
1919
const properties = [];
2020

2121
for (const name of Object.keys(object)) {

src/createSpreadMapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import optionsDefaults from './schemas/optionsDefaults';
1515

1616
const createSpreadMapper = (path: *, stats: *): {
17-
[destinationName: string]: Expression,
17+
[destinationName: string]: typeof Expression,
1818
...
1919
} => {
2020
const result = {};

src/handleSpreadClassName.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
const handleSpreadClassName = (
1414
path: *,
1515
destinationName: string,
16-
classNamesFromSpread: Expression,
16+
classNamesFromSpread: typeof Expression,
1717
) => {
1818
const destinationAttribute = path.node.openingElement.attributes
1919
.find((attribute) => {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const notForPlugin = (path: *, stats: *) => {
6262
export default ({
6363
types,
6464
}: {|
65-
types: BabelTypes,
65+
types: typeof BabelTypes,
6666
|}) => {
6767
const filenameMap = {};
6868

src/replaceJsxExpressionContainer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ import type {
1818
} from './types';
1919

2020
export default (
21-
types: BabelTypes,
21+
types: typeof BabelTypes,
2222
// eslint-disable-next-line flowtype/no-weak-types
2323
path: Object,
24-
sourceAttribute: JSXAttribute,
24+
sourceAttribute: typeof JSXAttribute,
2525
destinationName: string,
26-
importedHelperIndentifier: Identifier,
27-
styleModuleImportMapIdentifier: Identifier,
26+
importedHelperIndentifier: typeof Identifier,
27+
styleModuleImportMapIdentifier: typeof Identifier,
2828
options: GetClassNameOptionsType,
2929
): void => {
3030
const expressionContainerValue = sourceAttribute.value;

src/resolveStringLiteral.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import type {
1919
export default (
2020
path: *,
2121
styleModuleImportMap: StyleModuleImportMapType,
22-
sourceAttribute: JSXAttribute,
22+
sourceAttribute: typeof JSXAttribute,
2323
destinationName: string,
2424
options: GetClassNameOptionsType,
2525
): void => {

0 commit comments

Comments
 (0)