Clean up typescript errors

This commit is contained in:
Austin Chen 2022-08-22 17:37:40 -07:00
parent ad7827f2f1
commit e608f552f1

View File

@ -1,5 +1,3 @@
import { GROUP_CHAT_SLUG } from 'common/group'
type Contest = { type Contest = {
link: string link: string
description: string description: string
@ -8,9 +6,9 @@ type Contest = {
closeTime: string closeTime: string
} }
export let contest_data: { [name: string]: Contest } = {} export const CONTEST_DATA: { [name: string]: Contest } = {}
contest_data['cause-exploration-prize'] = { CONTEST_DATA['cause-exploration-prize'] = {
link: 'https://www.causeexplorationprizes.com/', link: 'https://www.causeexplorationprizes.com/',
description: description:
'Open Philanthropys contest to find ideas for the best ways to use their resources, with focus on new areas to support, health development, and worldview investigations.', 'Open Philanthropys contest to find ideas for the best ways to use their resources, with focus on new areas to support, health development, and worldview investigations.',
@ -21,4 +19,4 @@ contest_data['cause-exploration-prize'] = {
closeTime: '2022-09-01', closeTime: '2022-09-01',
} }
export const CONTEST_SLUGS = Object.keys(contest_data) export const CONTEST_SLUGS = Object.keys(CONTEST_DATA)