Skip to content

Commit 5cc6028

Browse files
Keyan ZhangKeyan Zhang
Keyan Zhang
authored and
Keyan Zhang
committed
prettier
1 parent d73bff0 commit 5cc6028

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

flow-typed/qs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare module 'qs' {
22
declare module.exports: {
3-
parse: (str: string, opts: Object) => Object;
3+
parse: (str: string, opts: Object) => Object,
44
};
55
}

src/components/ErrorDecoder/ErrorDecoder.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ function urlify(str: string): Node {
4141

4242
// `?invariant=123&args[]=foo&args[]=bar`
4343
// or `// ?invariant=123&args[0]=foo&args[1]=bar`
44-
function parseQueryString(search: string): ?{code: string, args: Array<string>} {
44+
function parseQueryString(
45+
search: string,
46+
): ?{|code: string, args: Array<string>|} {
4547
const qsResult = qs.parse(search, {ignoreQueryPrefix: true});
4648
if (!qsResult.invariant) {
4749
return null;
@@ -52,7 +54,7 @@ function parseQueryString(search: string): ?{code: string, args: Array<string>}
5254
};
5355
}
5456

55-
function ErrorResult(props: {code: ?string, msg: string}) {
57+
function ErrorResult(props: {|code: ?string, msg: string|}) {
5658
const code = props.code;
5759
const errorMsg = props.msg;
5860

0 commit comments

Comments
 (0)