From 5190cf2adbf48c5ec73017a13a3fe3d44c36a63f Mon Sep 17 00:00:00 2001 From: adueck Date: Mon, 4 Dec 2023 14:11:23 +0400 Subject: [PATCH] type error --- package-lock.json | 4 ++-- package.json | 2 +- src/components/package-lock.json | 4 ++-- src/components/package.json | 2 +- src/lib/package.json | 2 +- src/lib/src/protobuf.ts | 34 ++++++++++++++++++-------------- 6 files changed, 26 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index 068ce1a..e6ab5f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pashto-inflector", - "version": "7.0.0", + "version": "7.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pashto-inflector", - "version": "7.0.0", + "version": "7.0.1", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index e2c213b..7ecb7a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pashto-inflector", - "version": "7.0.0", + "version": "7.0.1", "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/package-lock.json b/src/components/package-lock.json index 42e8e56..5867ba7 100644 --- a/src/components/package-lock.json +++ b/src/components/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lingdocs/ps-react", - "version": "7.0.0", + "version": "7.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lingdocs/ps-react", - "version": "7.0.0", + "version": "7.0.1", "license": "MIT", "dependencies": { "@formkit/auto-animate": "^1.0.0-beta.3", diff --git a/src/components/package.json b/src/components/package.json index 2eef8ce..4b4ccd0 100644 --- a/src/components/package.json +++ b/src/components/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/ps-react", - "version": "7.0.0", + "version": "7.0.1", "description": "Pashto inflector library module with React components", "main": "dist/components/library.js", "module": "dist/components/library.js", diff --git a/src/lib/package.json b/src/lib/package.json index 352634b..19ebd6f 100644 --- a/src/lib/package.json +++ b/src/lib/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/inflect", - "version": "7.0.0", + "version": "7.0.1", "description": "Pashto inflector library", "main": "dist/index.js", "types": "dist/lib/library.d.ts", diff --git a/src/lib/src/protobuf.ts b/src/lib/src/protobuf.ts index 478d2b8..61b55a8 100644 --- a/src/lib/src/protobuf.ts +++ b/src/lib/src/protobuf.ts @@ -4,27 +4,31 @@ import { Dictionary, DictionaryInfo } from "./dictionary-models"; import Pbf from "pbf"; export function writeDictionary(dictionary: T.Dictionary): ArrayBuffer { - const pbfDict = new Pbf(); - Dictionary.write(dictionary, pbfDict); - const buffer = pbfDict.finish(); - return buffer; + const pbfDict = new Pbf(); + // @ts-ignore + Dictionary.write(dictionary, pbfDict); + const buffer = pbfDict.finish(); + return buffer; } export function readDictionary(buffer: Uint8Array): T.Dictionary { - const pbf = new Pbf(buffer); - const dictionary = Dictionary.read(pbf) as T.Dictionary; - return dictionary; + const pbf = new Pbf(buffer); + // @ts-ignore + const dictionary = Dictionary.read(pbf) as T.Dictionary; + return dictionary; } export function writeDictionaryInfo(dictionary: T.DictionaryInfo): ArrayBuffer { - const pbfDict = new Pbf(); - DictionaryInfo.write(dictionary, pbfDict); - const buffer = pbfDict.finish(); - return buffer; + const pbfDict = new Pbf(); + // @ts-ignore + DictionaryInfo.write(dictionary, pbfDict); + const buffer = pbfDict.finish(); + return buffer; } export function readDictionaryInfo(buffer: Uint8Array): T.DictionaryInfo { - const pbf = new Pbf(buffer); - const dictionaryInfo = DictionaryInfo.read(pbf) as T.DictionaryInfo; - return dictionaryInfo; -} \ No newline at end of file + const pbf = new Pbf(buffer); + // @ts-ignore + const dictionaryInfo = DictionaryInfo.read(pbf) as T.DictionaryInfo; + return dictionaryInfo; +}