From c6afe15f7d24f6081f371c27a18ff403e81c38a6 Mon Sep 17 00:00:00 2001 From: Ruben Thoms Date: Fri, 20 Dec 2024 12:47:39 +0100 Subject: [PATCH] fix: linting --- .../MultiViewPickingInfoAssembler.ts | 2 ++ .../src/hooks/useMultiViewPicking/index.ts | 12 +++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/typescript/packages/subsurface-viewer/src/hooks/useMultiViewPicking/MultiViewPickingInfoAssembler.ts b/typescript/packages/subsurface-viewer/src/hooks/useMultiViewPicking/MultiViewPickingInfoAssembler.ts index 3abb9248a..47fba3aee 100644 --- a/typescript/packages/subsurface-viewer/src/hooks/useMultiViewPicking/MultiViewPickingInfoAssembler.ts +++ b/typescript/packages/subsurface-viewer/src/hooks/useMultiViewPicking/MultiViewPickingInfoAssembler.ts @@ -21,11 +21,13 @@ export type PickingInfoPerView = Record< >; function hasPropertiesArray( + // eslint-disable-next-line @typescript-eslint/no-explicit-any obj: any ): obj is { properties: PropertyDataType[] } { return obj && Array.isArray(obj.properties); } +// eslint-disable-next-line @typescript-eslint/no-explicit-any function hasSingleProperty(obj: any): obj is { propertyValue: number } { return ( obj && "propertyValue" in obj && typeof obj.propertyValue === "number" diff --git a/typescript/packages/subsurface-viewer/src/hooks/useMultiViewPicking/index.ts b/typescript/packages/subsurface-viewer/src/hooks/useMultiViewPicking/index.ts index 7c9661b5b..c82087a4e 100644 --- a/typescript/packages/subsurface-viewer/src/hooks/useMultiViewPicking/index.ts +++ b/typescript/packages/subsurface-viewer/src/hooks/useMultiViewPicking/index.ts @@ -1,3 +1,9 @@ -export { useMultiViewPicking } from './useMultiViewPicking'; -export type { UseMultiViewPickingProps, UseMultiViewPickingReturnType } from './useMultiViewPicking'; -export type { PickingInfoPerView, LayerPickingInfo} from './MultiViewPickingInfoAssembler'; \ No newline at end of file +export { useMultiViewPicking } from "./useMultiViewPicking"; +export type { + UseMultiViewPickingProps, + UseMultiViewPickingReturnType, +} from "./useMultiViewPicking"; +export type { + PickingInfoPerView, + LayerPickingInfo, +} from "./MultiViewPickingInfoAssembler";