Closed leovoon closed 1 year ago
I'm trying to use another transition function as follows
<script lang='ts'> import { fly } from 'svelte/transition' </script> <Modal transitionWindow={fly} transitionWindowProps={{ y: 50, duration: 300 }} // Typescript is not happy </Modal>
The type is currently only supported for blurparam. This PR adds properties for fly, fade and slide functions and updates docs.
blurparam
fly
fade
slide
No typescript warnings
New version with the improved type definition is out!
Background
I'm trying to use another transition function as follows
Currently Observed Behavior
The type is currently only supported for
blurparam
. This PR adds properties forfly
,fade
andslide
functions and updates docs.New Behavior
No typescript warnings