Skip to content

Commit ac659f7

Browse files
committed
fix a few more files
1 parent 47f1580 commit ac659f7

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

packages/svelte/src/compiler/preprocess/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ async function process_markup(process, source) {
329329
/**
330330
* @param {string} source
331331
* @param {import('./public.js').PreprocessorGroup | import('./public.js').PreprocessorGroup[]} preprocessor
332-
* @param {{ filename?: string }} options
332+
* @param {{ filename?: string }} [options]
333333
* @returns {Promise<import('./public.js').Processed>}
334334
*/
335335
export default async function preprocess(source, preprocessor, options) {

packages/svelte/src/runtime/internal/Component.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ if (typeof HTMLElement === 'function') {
221221
node.setAttribute('name', name);
222222
}
223223
},
224+
/**
225+
* @param {HTMLElement} target
226+
* @param {HTMLElement} [anchor]
227+
*/
224228
m: function mount(target, anchor) {
225229
insert(target, node, anchor);
226230
},

packages/svelte/src/runtime/internal/dom.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,11 +1001,13 @@ export function toggle_class(element, name, toggle) {
10011001
* @template T
10021002
* @param {string} type
10031003
* @param {T} [detail]
1004+
* @param {{ bubbles?: boolean, cancelable?: boolean }} [options]
10041005
* @returns {CustomEvent<T>}
10051006
*/
10061007
export function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
10071008
/**
1008-
* @type {CustomEvent<T>} */
1009+
* @type {CustomEvent<T>}
1010+
*/
10091011
const e = document.createEvent('CustomEvent');
10101012
e.initCustomEvent(type, bubbles, cancelable, detail);
10111013
return e;

packages/svelte/src/runtime/internal/transitions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ export function transition_in(block, local) {
7474
/**
7575
* @param {import('./private.js').Fragment} block
7676
* @param {0 | 1} local
77-
* @param {0 | 1} detach
77+
* @param {0 | 1} [detach]
78+
* @param {() => void} [callback]
7879
* @returns {void}
7980
*/
8081
export function transition_out(block, local, detach, callback) {

packages/svelte/src/runtime/motion/tweened.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function tweened(value, defaults = {}) {
5757
let target_value = value;
5858
/**
5959
* @param {T} new_value
60-
* @param {import('./private.js').TweenedOptions<T>} opts
60+
* @param {import('./private.js').TweenedOptions<T>} [opts]
6161
*/
6262
function set(new_value, opts) {
6363
if (value == null) {

0 commit comments

Comments
 (0)