Corrige une erreur de type

pull/1103/head
Maxime Quandalle 2020-09-07 12:27:14 +02:00 committed by Johan Girod
parent 8dbae98785
commit eaf0ae38ae
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import StackedBarChart from 'Components/StackedBarChart'
import { ThemeColorsContext } from 'Components/utils/colors'
import { IsEmbeddedContext } from 'Components/utils/embeddedContext'
import { EngineContext } from 'Components/utils/EngineContext'
import { default as React, useContext, useEffect } from 'react'
import React, { useContext, useEffect } from 'react'
import { Helmet } from 'react-helmet'
import { Trans, useTranslation } from 'react-i18next'
import { SitePathsContext } from 'Components/utils/SitePathsContext'

View File

@ -27,7 +27,7 @@ type Situation<Names extends string> = Partial<
>
type EvaluatedSituation<Names extends string> = Partial<
Record<Names, object | number | EvaluatedNode<Names>>
Record<Names, EvaluatedNode<Names>>
>
export type EvaluationOptions = Partial<{
@ -43,7 +43,7 @@ export { utils }
export default class Engine<Names extends string> {
parsedRules: ParsedRules<Names>
situation: Situation<Names> = {}
situation: EvaluatedSituation<Names> = {}
private cache: Cache
private warnings: Array<string> = []