mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Identify task (#1839)
* Add identify task * Change type naming * Debounce folder select text input * Add generic slice comparison function
This commit is contained in:
@@ -1,2 +1,11 @@
|
||||
export const filterData = <T>(data?: (T | null | undefined)[] | null) =>
|
||||
data ? (data.filter((item) => item) as T[]) : [];
|
||||
|
||||
interface ITypename {
|
||||
__typename?: string;
|
||||
}
|
||||
|
||||
export function withoutTypename<T extends ITypename>(o: T) {
|
||||
const { __typename, ...ret } = o;
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user