mesqueeb/filter-anything

omit ts bug - dont correct type automatically

productdevbook opened this issue · 5 comments

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'])

image

ts dont omit see

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.

this docs:
image
not same as docs, why i see 3 data in json i only need to see 1

Interesting. It's a bug I think.