mirror of https://github.com/vuejs/core.git
				
				
				
			
		
			
				
	
	
		
			14 lines
		
	
	
		
			364 B
		
	
	
	
		
			TypeScript
		
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			364 B
		
	
	
	
		
			TypeScript
		
	
	
	
| import { CustomPropsNotErased } from 'dts-built-test/src/index'
 | |
| 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)
 | |
| })
 |