chore: fix type of "skills" (#12)
This commit is contained in:
@@ -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);
|
||||
* }
|
||||
|
||||
@@ -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>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user