Répare la signature typescript du package exoneration-covid

pull/2077/head
Johan Girod 2022-03-30 15:19:06 +02:00
parent 372ae69a93
commit 1f702677e3
7 changed files with 10 additions and 10 deletions

View File

@ -2,9 +2,9 @@
// sub-section of them. We might support "code-splitting" the rules in the
// future.
import { Rule } from 'publicodes'
import { Names as ExoCovidDottedNames } from './dist/names'
import { Names } from './dist/names'
declare let rules: Record<ExoCovidDottedNames, Rule>
export type DottedName = Names
declare let rules: Record<Names, Rule>
export type { ExoCovidDottedNames }
export default rules

View File

@ -1,6 +1,6 @@
{
"name": "exoneration-covid",
"version": "0.4.0",
"version": "0.4.1",
"description": "Les règles publicodes pour le calcul de l'exonération de cotisations covid (année 2021)",
"main": "./dist/index.js",
"types": "./index.d.ts",
@ -12,7 +12,7 @@
"bugs": "https://github.com/betagouv/mon-entreprise/issues?q=is%3Aopen+is%3Aissue+label%3A%22%F0%9F%93%95+l%C3%A9gislation%22",
"license": "MIT",
"files": [
"dist/index.js"
"dist"
],
"type": "module",
"devDependencies": {

View File

@ -13,7 +13,7 @@
"homepage": "https://mon-entreprise.urssaf.fr/int%C3%A9gration/biblioth%C3%A8que-de-calcul",
"license": "MIT",
"files": [
"dist/index.js"
"dist"
],
"type": "module",
"devDependencies": {

View File

@ -7,7 +7,7 @@ import { Button } from '@/design-system/buttons'
import { Spacing } from '@/design-system/layout'
import { H3 } from '@/design-system/typography/heading'
import { Grid } from '@mui/material'
import { ExoCovidDottedNames } from 'exoneration-covid'
import { DottedName as ExoCovidDottedNames } from 'exoneration-covid'
import { PublicodesExpression } from 'publicodes'
import { useCallback, useEffect } from 'react'
import { Trans } from 'react-i18next'

View File

@ -6,7 +6,7 @@ import { H3 } from '@/design-system/typography/heading'
import { Li, Ul } from '@/design-system/typography/list'
import { Body } from '@/design-system/typography/paragraphs'
import { Grid } from '@mui/material'
import { ExoCovidDottedNames } from 'exoneration-covid'
import { DottedName as ExoCovidDottedNames } from 'exoneration-covid'
import Engine, { EvaluatedNode, PublicodesExpression } from 'publicodes'
import { Key, useRef } from 'react'
import { Trans } from 'react-i18next'

View File

@ -5,7 +5,7 @@ import { H3 } from '@/design-system/typography/heading'
import { Li, Ul } from '@/design-system/typography/list'
import { Body } from '@/design-system/typography/paragraphs'
import { Grid } from '@mui/material'
import { ExoCovidDottedNames } from 'exoneration-covid'
import { DottedName as ExoCovidDottedNames } from 'exoneration-covid'
import { Evaluation, PublicodesExpression } from 'publicodes'
import { Trans, useTranslation } from 'react-i18next'
import styled from 'styled-components'

View File

@ -1,7 +1,7 @@
import { Item, Select } from '@/design-system/field/Select'
import { baseParagraphStyle } from '@/design-system/typography/paragraphs'
import { getMeta } from '@/utils'
import { ExoCovidDottedNames } from 'exoneration-covid'
import { DottedName as ExoCovidDottedNames } from 'exoneration-covid'
import { EvaluatedNode, formatValue } from 'publicodes'
import { Key } from 'react'
import { Trans, useTranslation } from 'react-i18next'