fix up types for InlinePs
This commit is contained in:
parent
b28e828f1e
commit
aa5296258c
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "pashto-inflector",
|
"name": "pashto-inflector",
|
||||||
"version": "5.7.12",
|
"version": "5.7.13",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "pashto-inflector",
|
"name": "pashto-inflector",
|
||||||
"version": "5.7.12",
|
"version": "5.7.13",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "pashto-inflector",
|
"name": "pashto-inflector",
|
||||||
"version": "5.7.12",
|
"version": "5.7.13",
|
||||||
"author": "lingdocs.com",
|
"author": "lingdocs.com",
|
||||||
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
|
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
|
||||||
"homepage": "https://verbs.lingdocs.com",
|
"homepage": "https://verbs.lingdocs.com",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/ps-react",
|
"name": "@lingdocs/ps-react",
|
||||||
"version": "5.7.12",
|
"version": "5.7.13",
|
||||||
"description": "Pashto inflector library module with React components",
|
"description": "Pashto inflector library module with React components",
|
||||||
"main": "dist/components/library.js",
|
"main": "dist/components/library.js",
|
||||||
"module": "dist/components/library.js",
|
"module": "dist/components/library.js",
|
||||||
|
|
|
@ -14,12 +14,16 @@ function InlinePs ({
|
||||||
children,
|
children,
|
||||||
ps,
|
ps,
|
||||||
opts,
|
opts,
|
||||||
}: {
|
}: ({
|
||||||
|
ps: T.PsString | (T.PsJSX & { e?: string }),
|
||||||
|
children?: T.PsString | (T.PsJSX & { e?: string }),
|
||||||
|
opts: T.TextOptions,
|
||||||
|
} | {
|
||||||
ps?: T.PsString | (T.PsJSX & { e?: string }),
|
ps?: T.PsString | (T.PsJSX & { e?: string }),
|
||||||
children: T.PsString | (T.PsJSX & { e?: string }),
|
children: T.PsString | (T.PsJSX & { e?: string }),
|
||||||
opts: T.TextOptions,
|
opts: T.TextOptions,
|
||||||
}) {
|
})) {
|
||||||
const text = children || ps;
|
const text = children || ps as T.PsString | (T.PsJSX & { e?: string });
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
<Pashto opts={opts}>{text}</Pashto>
|
<Pashto opts={opts}>{text}</Pashto>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/inflect",
|
"name": "@lingdocs/inflect",
|
||||||
"version": "5.7.12",
|
"version": "5.7.13",
|
||||||
"description": "Pashto inflector library",
|
"description": "Pashto inflector library",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/lib/library.d.ts",
|
"types": "dist/lib/library.d.ts",
|
||||||
|
|
Loading…
Reference in New Issue