Maelstromeous / satisfactory-factories

A tool to visualise groupings of factories to create a true Modular Factory setup for the game Satisfactory.
https://satisfactory-factories.app
GNU Affero General Public License v3.0
8 stars 3 forks source link

Parser: Convert power data to number format #59

Open Maelstromeous opened 2 hours ago

Maelstromeous commented 2 hours ago

As a result of #40, we need to also correct the data in the parser to also be a number for consistency's sake.

Maelstromeous commented 2 hours ago

    src/utils/factory-management/mocks/mockRecipes.ts:226:7 - error TS2322: Type 'string' is not assignable to type 'number'.

    226       power: '1.5',
              ~~~~~

      src/interfaces/Recipe.ts:15:5
        15     power: number;
               ~~~~~
        The expected type comes from property 'power' which is declared here on type '{ name: string; power: number; }'