From: Evan You Date: Sat, 11 Dec 2021 16:14:25 +0000 (+0800) Subject: chore: avoid api-extractor warnings X-Git-Tag: v3.2.25~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50f13278f9f90e92201890f2c8d9a5abe278038e;p=thirdparty%2Fvuejs%2Fcore.git chore: avoid api-extractor warnings --- diff --git a/api-extractor.json b/api-extractor.json index 883bf47a3a..bf3e80961a 100644 --- a/api-extractor.json +++ b/api-extractor.json @@ -44,6 +44,22 @@ "tsdoc-undefined-tag": { "logLevel": "none" + }, + + "tsdoc-escape-greater-than": { + "logLevel": "none" + }, + + "tsdoc-malformed-inline-tag": { + "logLevel": "none" + }, + + "tsdoc-escape-right-brace": { + "logLevel": "none" + }, + + "tsdoc-unnecessary-backslash": { + "logLevel": "none" } } } diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index b77c90c344..ae2f58418d 100644 --- a/packages/runtime-core/src/apiCreateApp.ts +++ b/packages/runtime-core/src/apiCreateApp.ts @@ -83,7 +83,7 @@ export interface AppConfig { ) => void /** - * Options to pass to @vue/compiler-dom. + * Options to pass to `@vue/compiler-dom`. * Only supported in runtime compiler build. */ compilerOptions: RuntimeCompilerOptions diff --git a/packages/runtime-core/src/compat/global.ts b/packages/runtime-core/src/compat/global.ts index e0c847d33a..10a2586382 100644 --- a/packages/runtime-core/src/compat/global.ts +++ b/packages/runtime-core/src/compat/global.ts @@ -88,7 +88,7 @@ export type CompatVue = Pick & { compile(template: string): RenderFunction /** - * @deprecated + * @deprecated Vue 3 no longer supports extending constructors. */ extend: (options?: ComponentOptions) => CompatVue /** diff --git a/packages/shared/src/domAttrConfig.ts b/packages/shared/src/domAttrConfig.ts index 46607c55b0..fb4f29a46f 100644 --- a/packages/shared/src/domAttrConfig.ts +++ b/packages/shared/src/domAttrConfig.ts @@ -26,7 +26,7 @@ export const isBooleanAttr = /*#__PURE__*/ makeMap( /** * Boolean attributes should be included if the value is truthy or ''. - * e.g. ` compiles to `{ multiple: '' }` */ export function includeBooleanAttr(value: unknown): boolean { return !!value || value === '' diff --git a/packages/shared/src/patchFlags.ts b/packages/shared/src/patchFlags.ts index 1025258df2..8a5ca2faad 100644 --- a/packages/shared/src/patchFlags.ts +++ b/packages/shared/src/patchFlags.ts @@ -31,9 +31,12 @@ export const enum PatchFlags { * Indicates an element with dynamic style * The compiler pre-compiles static string styles into static objects * + detects and hoists inline static objects - * e.g. style="color: red" and :style="{ color: 'red' }" both get hoisted as - * const style = { color: 'red' } - * render() { return e('div', { style }) } + * e.g. `style="color: red"` and `:style="{ color: 'red' }"` both get hoisted + * as: + * ```js + * const style = { color: 'red' } + * render() { return e('div', { style }) } + * ``` */ STYLE = 1 << 2,