✅ Corrige une erreur de type
parent
8dbae98785
commit
eaf0ae38ae
|
@ -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'
|
||||
|
|
|
@ -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> = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue