File tree 4 files changed +3214
-5280
lines changed
4 files changed +3214
-5280
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Test
3
3
on :
4
4
pull_request :
5
5
push :
6
- branches : " develop"
6
+ branches : ' develop'
7
7
8
8
jobs :
9
9
build :
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
useTabs : true ,
3
3
singleQuote : true ,
4
- trailingComma : " none" ,
4
+ trailingComma : ' none' ,
5
5
printWidth : 100 ,
6
6
plugins : [ require ( 'prettier-plugin-svelte' ) ] ,
7
- overrides : [ { files : '*.svelte' , options : { parser : 'svelte' } } ] ,
8
- } ;
7
+ overrides : [ { files : '*.svelte' , options : { parser : 'svelte' } } ]
8
+ } ;
Original file line number Diff line number Diff line change 26
26
};
27
27
28
28
let sparkles: SparkleType [] = [];
29
- let sparklesInterval: NodeJS .Timer ;
29
+ let sparklesInterval: NodeJS .Timeout | undefined ;
30
30
31
31
onMount (() => {
32
32
sparklesInterval = setInterval (() => {
45
45
});
46
46
47
47
onDestroy (() => {
48
- clearInterval (sparklesInterval );
48
+ if (sparklesInterval ) {
49
+ clearInterval (sparklesInterval );
50
+ }
49
51
});
50
52
</script >
51
53
54
+ /// <reference types =" svelte" />
55
+ /// <reference types =" svelte/internal" />
56
+
57
+ /// <reference types =" svelte" />
58
+ /// <reference types =" svelte/types/runtime" />
59
+
60
+ /// <reference types =" svelte" />
61
+ /// <reference types =" svelte/types/runtime" />
62
+
52
63
<div class =" sparkle-wrapper" >
53
64
{#each sparkles as sparkle (sparkle .id )}
54
- <Sparkle color ={sparkle .color } size ={sparkle .size } style ={sparkle .style } />
65
+ <Sparkle color ={sparkle .color } size ={` ${ sparkle .size }px ` } style ={sparkle .style } />
55
66
{/each }
56
67
<span class =" slot-wrapper" >
57
68
<slot />
You can’t perform that action at this time.
0 commit comments