blob: 9a669736b296c85375d6a4a619f7e340a4cbf2f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
export const asType = (type, name) => [type, name].join('_').toUpperCase()
export const tagAsType = (type, names) => (
names.reduce((tags, name) => {
tags[name] = asType(type, name)
return tags
}, {})
)
export const api = tagAsType('api', [
'loading', 'loaded', 'error', 'updateQuery',
])
export const system = tagAsType('system', [
])
export const init = '@@INIT'
export const MATCH_THRESHOLD = 6
export const SIMILAR_THRESHOLD = 20
|