mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-13 07:42:31 +02:00
initial implementation of play queue for new list
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import Fuse from 'fuse.js';
|
||||
|
||||
import { Song } from '/@/shared/types/domain-types';
|
||||
import { QueueSong } from '/@/shared/types/domain-types';
|
||||
|
||||
export const searchSongs = (songs: Song[], searchTerm: string) => {
|
||||
export const searchSongs = (songs: QueueSong[], searchTerm: string) => {
|
||||
const fuse = new Fuse(songs, {
|
||||
fieldNormWeight: 1,
|
||||
ignoreLocation: true,
|
||||
|
||||
Reference in New Issue
Block a user