fix export

This commit is contained in:
Robin Appelman 2020-02-01 02:32:54 +01:00
commit 9b0901cdf4
3 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,7 @@
import {FlatState, XY} from '../pkg/index.d.ts';
import {FlatState, XY} from '../pkg/tf_demos_viewer.d.ts';
export async function parseDemo(bytes: Uint8Array): Promise<ParsedDemo> {
let m = await import("../pkg/index.js");
let m = await import("../pkg/tf_demos_viewer.js");
const state = m.parse_demo(bytes);
let playerCount = state.player_count;