sveld 0.38.7 → 0.38.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -21
- package/browser.js +126 -126
- package/{chunk-nfwzp0b2.js → chunk-hkvtnaw2.js} +111 -111
- package/{chunk-qqhje1j7.js → chunk-tm3wwspf.js} +1 -1
- package/{chunk-gg5d8z19.js → chunk-xmk8z1r7.js} +30 -30
- package/chunk-xzarv1ey.js +1 -0
- package/cli-entry.js +2 -2
- package/index.js +1 -1
- package/package.json +1 -1
- package/chunk-60yq13dk.js +0 -1
package/README.md
CHANGED
|
@@ -240,27 +240,27 @@ See [CI](docs/ci.md) for exit codes, the change classification table, diagnostic
|
|
|
240
240
|
|
|
241
241
|
## JSDoc tags
|
|
242
242
|
|
|
243
|
-
| Tag
|
|
244
|
-
|
|
|
245
|
-
| [`@type`](docs/jsdoc-tags.md#type)
|
|
246
|
-
| [`@default`](docs/jsdoc-tags.md#default)
|
|
247
|
-
| [`@typedef`](docs/jsdoc-tags.md#typedef)
|
|
248
|
-
| [`@property`](docs/jsdoc-tags.md#property)
|
|
249
|
-
| [`@callback`](docs/jsdoc-tags.md#callback)
|
|
250
|
-
| [`@slot` / `@snippet`](docs/jsdoc-tags.md#slot--snippet)
|
|
251
|
-
| [`@event`](docs/jsdoc-tags.md#event)
|
|
252
|
-
| [`@param` / `@returns`](docs/jsdoc-tags.md#accessor-props)
|
|
253
|
-
| [`@restProps`](docs/jsdoc-tags.md#restprops)
|
|
254
|
-
| [`@extendProps`](docs/jsdoc-tags.md#extendprops)
|
|
255
|
-
| [`@template` / `@generics`](docs/jsdoc-tags.md#template--generics)
|
|
256
|
-
| [`@bindable`](docs/jsdoc-tags.md#bindable)
|
|
257
|
-
| [`@deprecated`](docs/jsdoc-tags.md#deprecated)
|
|
258
|
-
| [`@ignore` / `@internal`](docs/jsdoc-tags.md#ignore--internal)
|
|
259
|
-
| [`@since` / `@see` / `@example`](docs/jsdoc-tags.md#since-see-example) | Pass structured tags through to all outputs
|
|
260
|
-
| [`{@link}`](docs/jsdoc-tags.md#link)
|
|
261
|
-
| [`@csspart` / `@cssprop`](docs/jsdoc-tags.md#csspart--cssprop)
|
|
262
|
-
| [`@sveld-ignore`](docs/ci.md#ignoring-diagnostics)
|
|
263
|
-
| [`<!-- @component -->`](docs/jsdoc-tags.md#component-comments)
|
|
243
|
+
| Tag | Use it to | Example |
|
|
244
|
+
| :--------------------------------------------------------------------- | :-------------------------------------------------------- | :--------------------------------------------- |
|
|
245
|
+
| [`@type`](docs/jsdoc-tags.md#type) | Type a prop | `@type {"sm" \| "md" \| "lg"}` |
|
|
246
|
+
| [`@default`](docs/jsdoc-tags.md#default) | Override the inferred default shown in docs | `@default () => true` |
|
|
247
|
+
| [`@typedef`](docs/jsdoc-tags.md#typedef) | Declare a shared, exported type | `@typedef {{ id: string }} Item` |
|
|
248
|
+
| [`@property`](docs/jsdoc-tags.md#property) | Document a field of a `@typedef {object}` or event detail | `@property {string} [label] - Label text` |
|
|
249
|
+
| [`@callback`](docs/jsdoc-tags.md#callback) | Declare a function type | `@callback OnChange` + `@param`/`@returns` |
|
|
250
|
+
| [`@slot` / `@snippet`](docs/jsdoc-tags.md#slot--snippet) | Type slot or snippet props | `@slot {{ item: Item }} row` |
|
|
251
|
+
| [`@event`](docs/jsdoc-tags.md#event) | Type a dispatched event's detail | `@event {{ id: string }} save` |
|
|
252
|
+
| [`@param` / `@returns`](docs/jsdoc-tags.md#accessor-props) | Type an exported function | `@param {string} id` |
|
|
253
|
+
| [`@restProps`](docs/jsdoc-tags.md#restprops) | Name the element rest props are spread onto | `@restProps {button \| a}` |
|
|
254
|
+
| [`@extendProps`](docs/jsdoc-tags.md#extendprops) | Extend another component's props | `@extendProps {"./Button.svelte"} ButtonProps` |
|
|
255
|
+
| [`@template` / `@generics`](docs/jsdoc-tags.md#template--generics) | Declare generics in a JS component | `@template {Item} [T=Item]` |
|
|
256
|
+
| [`@bindable`](docs/jsdoc-tags.md#bindable) | Document a prop's `bind:` contract | `@bindable writable` |
|
|
257
|
+
| [`@deprecated`](docs/jsdoc-tags.md#deprecated) | Mark a prop, event, slot, or export deprecated | `@deprecated Use "size" instead.` |
|
|
258
|
+
| [`@ignore` / `@internal`](docs/jsdoc-tags.md#ignore--internal) | Hide from every output | `@internal` |
|
|
259
|
+
| [`@since` / `@see` / `@example`](docs/jsdoc-tags.md#since-see-example) | Pass structured tags through to all outputs | `@since 1.2.0` |
|
|
260
|
+
| [`{@link}`](docs/jsdoc-tags.md#link) | Link in a description | `{@link https://example.com\|docs}` |
|
|
261
|
+
| [`@csspart` / `@cssprop`](docs/jsdoc-tags.md#csspart--cssprop) | Document shadow-DOM styling hooks | `@cssprop {Color} [--bg=white]` |
|
|
262
|
+
| [`@sveld-ignore`](docs/ci.md#ignoring-diagnostics) | Suppress a diagnostic | `@sveld-ignore sveld/prop-unknown-type` |
|
|
263
|
+
| [`<!-- @component -->`](docs/jsdoc-tags.md#component-comments) | Document the component itself | `<!-- @component Renders a button. -->` |
|
|
264
264
|
|
|
265
265
|
Context types come from `setContext` calls with no tag needed. See [Context](docs/jsdoc-tags.md#context).
|
|
266
266
|
|