UNPKG

216 Btext/coffeescriptView Raw
1isRelative = (v) -> v[0] == '.'
2
3module.exports = (conf, instance) ->
4 if typeof conf == 'string'
5 if typeof instance == 'function' && isRelative(conf)
6 'factory'
7 else
8 'value'
9 else
10 conf.type