From 5214d2ef35b7d90a1e0776776e4ed6ad78b60aae Mon Sep 17 00:00:00 2001 From: Maxim Kuznetsov Date: Mon, 25 Sep 2023 14:40:57 +0300 Subject: [PATCH] remove ts-expect-error directive --- modules/i3s/src/lib/parsers/parse-i3s.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/i3s/src/lib/parsers/parse-i3s.ts b/modules/i3s/src/lib/parsers/parse-i3s.ts index 18960240e0..ccd0075e6f 100644 --- a/modules/i3s/src/lib/parsers/parse-i3s.ts +++ b/modules/i3s/src/lib/parsers/parse-i3s.ts @@ -10,7 +10,8 @@ import { Mbs, I3SMinimalNodeData, Node3DIndexDocument, - SceneLayer3D + SceneLayer3D, + I3SParseOptions } from '../../types'; import type {LoaderOptions, LoaderContext} from '@loaders.gl/loader-utils'; import { I3SLoader } from '../../i3s-loader'; @@ -90,8 +91,8 @@ export async function normalizeTilesetData(tileset : SceneLayer3D, options : Loa nodePagesTile = new I3SNodePagesTiles(tileset, url, options); root = await nodePagesTile.formTileFromNodePages(0); } else { - // @ts-expect-error options is not properly typed - const rootNodeUrl = getUrlWithToken(`${url}/nodes/root`, options.i3s?.token); + const parseOptions = options.i3s as I3SParseOptions; + const rootNodeUrl = getUrlWithToken(`${url}/nodes/root`, parseOptions.token); // eslint-disable-next-line no-use-before-define root = await load(rootNodeUrl, I3SLoader, { ...options,