feat: enable volar ts plugin (#63)
* chore: enabled ts plugin * fix: require -> required
This commit is contained in:
		
							parent
							
								
									ac7dafc1b1
								
							
						
					
					
						commit
						c6c6722d38
					
				
							
								
								
									
										1
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							@ -1,4 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  "volar.tsPlugin": true,
 | 
			
		||||
  "i18n-ally.localesPaths": "locales",
 | 
			
		||||
  "i18n-ally.keystyle": "nested",
 | 
			
		||||
  "i18n-ally.sortKeys": true,
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@ import { defineProps } from 'vue'
 | 
			
		||||
const props = defineProps({
 | 
			
		||||
  name: {
 | 
			
		||||
    type: String,
 | 
			
		||||
    require: true,
 | 
			
		||||
    required: true,
 | 
			
		||||
  },
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										6
									
								
								src/shims.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								src/shims.d.ts
									
									
									
									
										vendored
									
									
								
							@ -4,12 +4,6 @@ declare interface Window {
 | 
			
		||||
  // extend the window
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
declare module '*.vue' {
 | 
			
		||||
  import { ComponentOptions } from 'vue'
 | 
			
		||||
  const component: ComponentOptions
 | 
			
		||||
  export default component
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// with vite-plugin-md, markdowns can be treat as Vue components
 | 
			
		||||
declare module '*.md' {
 | 
			
		||||
  import { ComponentOptions } from 'vue'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user