Add Flow typing for all files in constants/ and utils/

This commit is contained in:
Victor Zhou
2019-04-10 16:19:40 -04:00
parent 17e3ff8918
commit c11a2731a4
6 changed files with 8 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
const getContactHref = (name, contact) => {
// @flow
const getContactHref = (name: string, contact: string) => {
let href;
switch (name) {

View File

@@ -1,6 +1,7 @@
// @flow
import { ICONS } from '../constants';
const getIcon = (name) => {
const getIcon = (name: string) => {
let icon;
switch (name) {

View File

@@ -1,2 +1,3 @@
// @flow
export { default as getIcon } from './get-icon';
export { default as getContactHref } from './get-contact-href';