Add the map in search view

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-09-01 10:00:17 +02:00
parent b36ce27bbe
commit eecb04516e
26 changed files with 1507 additions and 329 deletions

View File

@@ -3,3 +3,7 @@ import { GraphQLError } from "graphql/error/GraphQLError";
export class AbsintheGraphQLError extends GraphQLError {
readonly field: string | undefined;
}
export type TypeNamed<T extends Record<string, any>> = T & {
__typename: string;
};

View File

@@ -228,7 +228,6 @@ export class EventModel implements IEvent {
}
}
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function removeTypeName(entity: any): any {
if (entity?.__typename) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -292,3 +291,7 @@ export function organizerDisplayName(event: IEvent): string | null {
}
return null;
}
export function instanceOfIEvent(object: any): object is IEvent {
return "organizerActor" in object;
}