Skip to content

Commit

Permalink
remove ts-expect-error directive
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkuznetsov-actionengine committed Sep 25, 2023
1 parent aa1e904 commit 5214d2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/i3s/src/lib/parsers/parse-i3s.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 5214d2e

Please sign in to comment.