omit ts bug - dont correct type automatically
productdevbook opened this issue · 5 comments
productdevbook commented
import { omit } from 'filter-anything'
const togglePropsa = {
props: {
modelValue: String,
},
emits: {
'update:modelValue': (pressed: boolean) => String,
'pressedChange': (pressed: boolean) => String,
'click': (event: MouseEvent) => String,
},
}
const test = omit(togglePropsa.emits, ['update:modelValue', 'pressedChange'])
ts dont omit see
mesqueeb commented
Your TS issues are not related to omit
I believe. it says you cannot redeclare the variable test
, so you already have a variable in that file called test
.
productdevbook commented
productdevbook commented
productdevbook commented
mesqueeb commented
Interesting. It's a bug I think.