@vue/language-core
Advanced tools
Comparing version 1.8.11 to 1.8.12
@@ -11,2 +11,3 @@ "use strict"; | ||
const linkReg = /\[[\s\S]*?\]\([\s\S]*?\)/g; | ||
const codeSnippetImportReg = /^\s*<<<\s*.+/gm; | ||
const plugin = () => { | ||
@@ -23,3 +24,5 @@ return { | ||
// # \<script setup> | ||
.replace(scriptSetupReg, match => ' '.repeat(match.length)); | ||
.replace(scriptSetupReg, match => ' '.repeat(match.length)) | ||
// <<< https://vitepress.dev/guide/markdown#import-code-snippets | ||
.replace(codeSnippetImportReg, match => ' '.repeat(match.length)); | ||
const codes = []; | ||
@@ -26,0 +29,0 @@ for (const match of content.matchAll(sfcBlockReg)) { |
@@ -100,3 +100,4 @@ "use strict"; | ||
: T extends (...args: any) => any ? T | ||
: (_: T extends import('${vueCompilerOptions.lib}').VNode | import('${vueCompilerOptions.lib}').VNode[] | string ? {}: T${vueCompilerOptions.strictTemplates ? '' : ' & Record<string, unknown>'}, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: T${vueCompilerOptions.strictTemplates ? '' : ' & Record<string, unknown>'} } }; // IntrinsicElement | ||
: (_: {}${vueCompilerOptions.strictTemplates ? '' : ' & Record<string, unknown>'}, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: {}${vueCompilerOptions.strictTemplates ? '' : ' & Record<string, unknown>'} } }; | ||
declare function __VLS_elementAsFunctionalComponent<T>(t: T): (_: T${vueCompilerOptions.strictTemplates ? '' : ' & Record<string, unknown>'}, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: T${vueCompilerOptions.strictTemplates ? '' : ' & Record<string, unknown>'} } }; | ||
declare function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): Parameters<T>['length'] extends 2 ? [any] : []; | ||
@@ -110,12 +111,12 @@ declare function __VLS_pickEvent<Emit, K, E>(emit: Emit, emitKey: K, event: E): __VLS_FillingEventArg< | ||
declare function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): __VLS_PickNotAny< | ||
K extends { __ctx?: infer Ctx } ? Ctx : any, | ||
T extends (props: any, ctx: infer Ctx) => any ? Ctx : any | ||
'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: infer Ctx } ? Ctx : never : any | ||
, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any | ||
>; | ||
type __VLS_FunctionalComponentProps<T, K> = | ||
'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: { props?: infer P } } ? NonNullable<P> : never | ||
: T extends (props: infer P, ...args: any) => any ? P : | ||
{}; | ||
type __VLS_AsFunctionOrAny<F> = unknown extends F ? any : ((...args: any) => any) extends F ? F : any; | ||
declare function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S; | ||
declare function __VLS_componentProps<T, K>(comp: T, fnReturn: K): | ||
__VLS_PickNotAny<K, {}> extends { __ctx: { props: infer P } } ? NonNullable<P> | ||
: T extends (props: infer P, ...args: any) => any ? NonNullable<P> : | ||
{}; | ||
`.trim(); | ||
@@ -122,0 +123,0 @@ } |
{ | ||
"name": "@vue/language-core", | ||
"version": "1.8.11", | ||
"version": "1.8.12", | ||
"main": "out/index.js", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "cce193dcc182aad5d02f630fa3ae8a793d443680" | ||
"gitHead": "a065fd7516de02f1804f3394d6e2e0511a1e67a5" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
259216
5606