breaking(header-action): use SlideParams to type transition prop (#1163)

This commit is contained in:
metonym 2022-03-12 14:35:59 -08:00 committed by GitHub
commit 47866b1d51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 41 deletions

View file

@ -1,8 +1,4 @@
<script>
/**
* @typedef {{ delay?: number; duration?: number; easing?: (t: number) => number; }} HeaderActionSlideTransition
*/
/** Set to `true` to open the panel */
export let isOpen = false;
@ -29,9 +25,9 @@
export let ref = null;
/**
* Customize the panel transition (i.e., `transition:slide`)
* Customize the panel transition (i.e., `transition:slide`).
* Set to `false` to disable the transition
* @type {false | HeaderActionSlideTransition}
* @type {false | import("svelte/transition").SlideParams}
*/
export let transition = { duration: 200 };