Répare la signature typescript du package exoneration-covid
parent
372ae69a93
commit
1f702677e3
|
@ -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
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue