From 7cc287b4c243b3a09a677af10691d31f1eea3a22 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 19 Nov 2023 12:05:57 +0100 Subject: [PATCH] chore: fix type of "skills" (#12) --- src/DogmaEngineProvider/DogmaEngineProvider.tsx | 2 +- src/ShipSnapshotProvider/ShipSnapshotProvider.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DogmaEngineProvider/DogmaEngineProvider.tsx b/src/DogmaEngineProvider/DogmaEngineProvider.tsx index 5189752..5b4cf47 100644 --- a/src/DogmaEngineProvider/DogmaEngineProvider.tsx +++ b/src/DogmaEngineProvider/DogmaEngineProvider.tsx @@ -38,7 +38,7 @@ export interface DogmaEngineProps { * const dogmaEngine = React.useContext(DogmaEngineContext); * * if (dogmaEngine?.loaded) { - * // calculate(esiFit: EsiFit, skills: Map) + * // calculate(esiFit: EsiFit, skills: Record) * const stats = dogmaEngine.engine.calculate(esiFit, {}); * console.log(stats); * } diff --git a/src/ShipSnapshotProvider/ShipSnapshotProvider.tsx b/src/ShipSnapshotProvider/ShipSnapshotProvider.tsx index c7bbb5d..a506f5d 100644 --- a/src/ShipSnapshotProvider/ShipSnapshotProvider.tsx +++ b/src/ShipSnapshotProvider/ShipSnapshotProvider.tsx @@ -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; + skills: Record; } /**