ffplayout/types/index.ts

51 lines
870 B
TypeScript
Raw Normal View History

export { }
2023-01-11 10:54:25 +01:00
declare global {
interface Crumb {
2023-01-11 10:54:25 +01:00
text: string
path: string
}
interface Payload {
method: string,
headers: any,
body?: any,
}
2023-01-11 10:54:25 +01:00
interface PlaylistItem {
uid: string
begin: number
source: string
duration: number
in: number
out: number
audio?: string
category?: string
custom_filter?: string
class?: string
}
interface FileObject {
name: string
duration: number
}
interface FileFolderObject {
2023-01-11 10:54:25 +01:00
source: string
parent: string
folders: string[]
files: FileObject[]
}
interface FolderObject {
source: string
parent: string
folders: string[]
}
2023-01-11 10:54:25 +01:00
interface SourceObject {
type: string
src: string
}
}