add vidsrc source+embed and StreamBucket embed

This commit is contained in:
Jonathan Barrow
2023-09-30 17:44:32 -04:00
parent c82a1f94b3
commit 849347afbe
19 changed files with 385 additions and 5 deletions

View File

@@ -4,8 +4,9 @@ export type FetcherOptions = {
baseUrl?: string;
headers?: Record<string, string>;
query?: Record<string, string>;
method?: 'GET' | 'POST';
method?: 'HEAD' | 'GET' | 'POST';
body?: Record<string, any> | string | FormData | URLSearchParams;
returnRaw?: boolean;
};
export type DefaultedFetcherOptions = {
@@ -13,7 +14,8 @@ export type DefaultedFetcherOptions = {
body?: Record<string, any> | string | FormData;
headers: Record<string, string>;
query: Record<string, string>;
method: 'GET' | 'POST';
method: 'HEAD' | 'GET' | 'POST';
returnRaw?: boolean;
};
export type Fetcher<T = any> = {