Code & Deploy
Code
Code Review
Models
Repos
Toggle menu
Code
Code Review
Models
Repos
Sign in
Sign in
@setoelkahfi
/
tower-of-bazel
tower-of-bazel
/
frontend
/
splitfire-desktop
/
models
/
lyricSynches.ts
Code
Commits
Issues
Pulls
Sessions
CI/CD
feature/share-libs
feature/share-libs
main
ts
15 lines
253 Bytes
Copy permalink
Copy
Raw
1
export
default
interface
LyricSynch
{
2
id
:
number
,
3
lyric
:
string
,
4
time
:
string
5
}
6
7
export
function
compare
(
a
:
LyricSynch
,
b
:
LyricSynch
)
{
8
if
(
a
.
id
<
0
)
{
9
return
0
10
}
11
if
(
a
.
id
<
b
.
id
)
{
12
return
-
1
13
}
14
return
0
15
}