]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: avoid api-extractor warnings
authorEvan You <yyx990803@gmail.com>
Sat, 11 Dec 2021 16:14:25 +0000 (00:14 +0800)
committerEvan You <yyx990803@gmail.com>
Sat, 11 Dec 2021 16:14:25 +0000 (00:14 +0800)
api-extractor.json
packages/runtime-core/src/apiCreateApp.ts
packages/runtime-core/src/compat/global.ts
packages/shared/src/domAttrConfig.ts
packages/shared/src/patchFlags.ts

index 883bf47a3ae59e23db0a1d2673653159e79a3837..bf3e80961a90b56e55fedb841980fd4cb59e820b 100644 (file)
 
       "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"
       }
     }
   }
index b77c90c3448414c653c60ea78256dca9c9fa73ff..ae2f58418dce7d2f333a3ca0fc90b875e56e621a 100644 (file)
@@ -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
index e0c847d33ae4a3296e43291604f2676da4ebb10b..10a258638270951d5f275434f95ee33920e28524 100644 (file)
@@ -88,7 +88,7 @@ export type CompatVue = Pick<App, 'version' | 'component' | 'directive'> & {
   compile(template: string): RenderFunction
 
   /**
-   * @deprecated
+   * @deprecated Vue 3 no longer supports extending constructors.
    */
   extend: (options?: ComponentOptions) => CompatVue
   /**
index 46607c55b0792981094cf4f866b516c181a826ab..fb4f29a46fca0757069f9f401d2fb63289a56cf0 100644 (file)
@@ -26,7 +26,7 @@ export const isBooleanAttr = /*#__PURE__*/ makeMap(
 
 /**
  * Boolean attributes should be included if the value is truthy or ''.
- * e.g. <select multiple> compiles to { multiple: '' }
+ * e.g. `<select multiple>` compiles to `{ multiple: '' }`
  */
 export function includeBooleanAttr(value: unknown): boolean {
   return !!value || value === ''
index 1025258df2f85ee374582fcdc9d43effb1cbaac5..8a5ca2faada510211f7778afbe9ae609ddc6868f 100644 (file)
@@ -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,