From a4eddf82d28877f640a99d6f68cdbbefcffddfe0 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sat, 4 Sep 2021 16:20:46 +0400 Subject: [PATCH] type tweak --- package.json | 2 +- src/components/Examples.tsx | 2 +- src/types.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index cfa459d..81e027e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "0.9.5", + "version": "0.9.6", "author": "lingdocs.com", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "homepage": "https://verbs.lingdocs.com", diff --git a/src/components/Examples.tsx b/src/components/Examples.tsx index 42a4a6b..2901269 100644 --- a/src/components/Examples.tsx +++ b/src/components/Examples.tsx @@ -29,7 +29,7 @@ function Examples({ ex, opts, }: { - ex?: PsStringWSub | PsStringWSub[], + ex?: PsStringWSub | PsStringWSub[] | T.PsJSX | T.PsJSX[], children: PsStringWSub | PsStringWSub[], opts: T.TextOptions, }) { diff --git a/src/types.ts b/src/types.ts index a38d26f..7f37892 100644 --- a/src/types.ts +++ b/src/types.ts @@ -12,7 +12,7 @@ export type PsString = { } & { e?: string; }; -export type PsJSX = { p: JSX.Element, f: JSX.Element }; +export type PsJSX = { p: JSX.Element, f: JSX.Element, e?: JSX.Element | string }; export type DictionaryInfo = { title: string;