built.test-d.ts 364 B

12345678910111213
  1. import { CustomPropsNotErased } from 'dts-built-test/src/index'
  2. import { describe, expectType } from './utils'
  3. declare module 'vue' {
  4. interface ComponentCustomProps {
  5. custom?: number
  6. }
  7. }
  8. // #8376 - custom props should not be erased
  9. describe('Custom Props not erased', () => {
  10. expectType<number | undefined>(new CustomPropsNotErased().$props.custom)
  11. })