mirror of
https://github.com/seerr-team/seerr.git
synced 2025-12-24 08:08:50 -05:00
* feat: backend fetch and return quality profile * feat: show request profile name * fix: wrong backend types * feat: i18n keys * fix: don't display quality profile if not set * fix: remove development artifact * fix: reduce parent div padding
24 lines
523 B
TypeScript
24 lines
523 B
TypeScript
interface PageInfo {
|
|
pages: number;
|
|
page: number;
|
|
results: number;
|
|
pageSize: number;
|
|
}
|
|
|
|
export interface PaginatedResponse {
|
|
pageInfo: PageInfo;
|
|
}
|
|
|
|
/**
|
|
* Get the keys of an object that are not functions
|
|
*/
|
|
type NonFunctionPropertyNames<T> = {
|
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
[K in keyof T]: T[K] extends Function ? never : K;
|
|
}[keyof T];
|
|
|
|
/**
|
|
* Get the properties of an object that are not functions
|
|
*/
|
|
export type NonFunctionProperties<T> = Pick<T, NonFunctionPropertyNames<T>>;
|