chore: avoid api-extractor warnings
This commit is contained in:
@@ -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 === ''
|
||||
|
||||
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user