mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Library updates (#792)
* Upgrade Typescript to 4.0 * Update i18n-iso-countries to 6.0 * Update react-intl to 5.8.0 * Update jimp to 0.16.1 * Update apollo and graphql libraries * Update various libraries and fix linting/type errors * Refactor cache invalidation * Codegen refetch queries
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import _ from "lodash";
|
||||
import queryString from "query-string";
|
||||
import React, { useCallback, useRef, useState, useEffect } from "react";
|
||||
import { ApolloError } from "apollo-client";
|
||||
import { ApolloError } from "@apollo/client";
|
||||
import { useHistory, useLocation } from "react-router-dom";
|
||||
import {
|
||||
SlimSceneDataFragment,
|
||||
@@ -58,7 +58,7 @@ const getSelectedData = <I extends IDataItem>(
|
||||
|
||||
interface IListHookData {
|
||||
filter: ListFilterModel;
|
||||
template: JSX.Element;
|
||||
template: React.ReactElement;
|
||||
onSelectChange: (id: string, selected: boolean, shiftKey: boolean) => void;
|
||||
}
|
||||
|
||||
@@ -88,15 +88,15 @@ interface IListHookOptions<T, E> {
|
||||
filter: ListFilterModel,
|
||||
selectedIds: Set<string>,
|
||||
zoomIndex: number
|
||||
) => JSX.Element | undefined;
|
||||
) => React.ReactNode;
|
||||
renderEditDialog?: (
|
||||
selected: E[],
|
||||
onClose: (applied: boolean) => void
|
||||
) => JSX.Element | undefined;
|
||||
) => React.ReactNode;
|
||||
renderDeleteDialog?: (
|
||||
selected: E[],
|
||||
onClose: (confirmed: boolean) => void
|
||||
) => JSX.Element | undefined;
|
||||
) => React.ReactNode;
|
||||
addKeybinds?: (
|
||||
result: T,
|
||||
filter: ListFilterModel,
|
||||
|
||||
Reference in New Issue
Block a user