Fix ESLint warnings and and enable max warnings 0 to fail builds (#2101)
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
import { toast } from 'react-toastify';
|
||||
import { fetchSharedSessionDetails, SharedSessionDetails } from './sharedSessions';
|
||||
import { type View } from './App';
|
||||
|
||||
interface SessionLinksViewOptions {
|
||||
sessionDetails?: SharedSessionDetails | null;
|
||||
error?: string;
|
||||
shareToken?: string;
|
||||
baseUrl?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles opening a shared session from a deep link
|
||||
* @param url The deep link URL (goose://sessions/:shareToken)
|
||||
@@ -11,7 +18,7 @@ import { type View } from './App';
|
||||
*/
|
||||
export async function openSharedSessionFromDeepLink(
|
||||
url: string,
|
||||
setView: (view: View, options?: Record<string, any>) => void,
|
||||
setView: (view: View, options?: SessionLinksViewOptions) => void,
|
||||
baseUrl?: string
|
||||
): Promise<SharedSessionDetails | null> {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user