Skip to content

Commit

Permalink
Update shared/constants.js to fix a Flow error
Browse files Browse the repository at this point in the history
  • Loading branch information
snowteamer committed Feb 27, 2021
1 parent a252a57 commit 36f51c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions shared/constants.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import type { ResType } from './types.js'

// https://flowtype.org/docs/objects.html

export const RESPONSE_TYPE: {[key: string]: ResType} = {
export const RESPONSE_TYPE: {[key: string]: string} = Object.freeze({
ERROR: 'error',
SUCCESS: 'success',
ALREADY: 'already',
SUB: 'sub',
UNSUB: 'unsub',
PUB: 'pub',
ENTRY: 'entry'
}
})

0 comments on commit 36f51c9

Please sign in to comment.