mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-26 20:22:32 +02:00
Add Flow typing for all files in constants/ and utils/
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const getContactHref = (name, contact) => {
|
||||
// @flow
|
||||
const getContactHref = (name: string, contact: string) => {
|
||||
let href;
|
||||
|
||||
switch (name) {
|
||||
|
@@ -1,6 +1,7 @@
|
||||
// @flow
|
||||
import { ICONS } from '../constants';
|
||||
|
||||
const getIcon = (name) => {
|
||||
const getIcon = (name: string) => {
|
||||
let icon;
|
||||
|
||||
switch (name) {
|
||||
|
@@ -1,2 +1,3 @@
|
||||
// @flow
|
||||
export { default as getIcon } from './get-icon';
|
||||
export { default as getContactHref } from './get-contact-href';
|
||||
|
Reference in New Issue
Block a user