HearthSim / hearthstone-deckstrings

🔗 Decode and encode Hearthstone Deckstrings.

Home Page:https://hearthsim.info/docs/deckstrings/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export FormatType

beheh opened this issue · comments

So that users of the library do not need to use the magical constants 1 and 2, but rather:

import { encode, FormatType } from "deckstrings";

encode({
    ...params,
    format: FormatType.FT_WILD,
});

This has not been released yet

@Pyrolistical Thanks for the poke, I just released this as deckstrings@2.1.0.