Skip to content

Commit b29775d

Browse files
committed
chore: define input object type
1 parent 8d19fc0 commit b29775d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/createObjectExpression.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import BabelTypes, {
44
ObjectExpression
55
} from 'babel-types';
66

7-
const createObjectExpression = (t: BabelTypes, object: Object): ObjectExpression => {
7+
type InputObjectType = {
8+
[key: string]: string | InputObjectType
9+
};
10+
const createObjectExpression = (t: BabelTypes, object: InputObjectType): ObjectExpression => {
811
const properties = [];
912

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

0 commit comments

Comments
 (0)