mirror of https://github.com/vuejs/core.git
				
				
				
			
		
			
				
	
	
		
			14 lines
		
	
	
		
			359 B
		
	
	
	
		
			TypeScript
		
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			359 B
		
	
	
	
		
			TypeScript
		
	
	
	
import { CustomPropsNotErased } from '@vue/dts-built-test'
 | 
						|
import { describe, expectType } from './utils'
 | 
						|
 | 
						|
declare module 'vue' {
 | 
						|
  interface ComponentCustomProps {
 | 
						|
    custom?: number
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
// #8376 - custom props should not be erased
 | 
						|
describe('Custom Props not erased', () => {
 | 
						|
  expectType<number | undefined>(new CustomPropsNotErased().$props.custom)
 | 
						|
})
 |