Invalid Typescript declarations
psu-de opened this issue · 0 comments
psu-de commented
Hello,
when working with prismarine-recipe and typescript I noticed that the RecipeItemConstructor Type is wrong and the default export is also not correct.
Currently, in index.d.ts:
export type RecipeItemConstructor = typeof Recipe;
Should be:
export type RecipeItemConstructor = typeof RecipeItem;
also the loader function is not declared as the default export:
export declare function loader(mcVersion: string): RecipeClasses;
what should be
declare function loader(mcVersion: string): RecipeClasses;
export default loader;