Skip to content

Commit

Permalink
fix export issue
Browse files Browse the repository at this point in the history
  • Loading branch information
h3902340 committed Dec 3, 2023
1 parent 9140d10 commit 01c9e98
Show file tree
Hide file tree
Showing 9 changed files with 448 additions and 403 deletions.
18 changes: 11 additions & 7 deletions dist/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@ interface Message {
time: number;
}

/**
* Parse the entire replay to get a Replay object.
* @param fileArrayBuffer provide the array buffer of age3Yrec file
* @returns return a replay with game infos
*/
declare function parseReplay(fileArrayBuffer: ArrayBuffer): Replay;
declare function parseChat(fileArrayBuffer: ArrayBuffer): Message[];

export { parseChat, parseReplay };
declare function parseDeck(dataView: DataView, uint8Ary: Uint8Array): Deck[];

declare function parseField(dataView: DataView): {
[k: string]: any;
};

declare function parseReplay(fileArrayBuffer: ArrayBuffer): Replay;

declare function parseTeam(dataView: DataView, uint8Ary: Uint8Array): Team[];

export { parseChat, parseDeck, parseField, parseReplay, parseTeam };
18 changes: 11 additions & 7 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@ interface Message {
time: number;
}

/**
* Parse the entire replay to get a Replay object.
* @param fileArrayBuffer provide the array buffer of age3Yrec file
* @returns return a replay with game infos
*/
declare function parseReplay(fileArrayBuffer: ArrayBuffer): Replay;
declare function parseChat(fileArrayBuffer: ArrayBuffer): Message[];

export { parseChat, parseReplay };
declare function parseDeck(dataView: DataView, uint8Ary: Uint8Array): Deck[];

declare function parseField(dataView: DataView): {
[k: string]: any;
};

declare function parseReplay(fileArrayBuffer: ArrayBuffer): Replay;

declare function parseTeam(dataView: DataView, uint8Ary: Uint8Array): Team[];

export { parseChat, parseDeck, parseField, parseReplay, parseTeam };
304 changes: 162 additions & 142 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 01c9e98

Please sign in to comment.