chore: fix type of "skills" (#12)

This commit is contained in:
Patric Stout
2023-11-19 12:05:57 +01:00
committed by GitHub
parent 2b3bb585ed
commit 7cc287b4c2
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ export interface DogmaEngineProps {
* const dogmaEngine = React.useContext(DogmaEngineContext);
*
* if (dogmaEngine?.loaded) {
* // calculate(esiFit: EsiFit, skills: Map<number, number>)
* // calculate(esiFit: EsiFit, skills: Record<string, number>)
* const stats = dogmaEngine.engine.calculate(esiFit, {});
* console.log(stats);
* }

View File

@@ -53,7 +53,7 @@ export interface ShipSnapshotProps {
/** A ship fit in ESI representation. */
fit: EsiFit;
/** A list of skills to apply to the fit: {skill_id: skill_level}. */
skills: Record<number, number>;
skills: Record<string, number>;
}
/**