jecki / ts2python

Python-interoperability for Typescript-Interfaces
Apache License 2.0
39 stars 3 forks source link

interface error #22

Open Liang-yc opened 2 months ago

Liang-yc commented 2 months ago

Hi, I try to convert code by ts2python . However, I get this error:

1:1: Error (1000): Malformed syntax-tree! Possibly caused by a parsing error.
1:8: Error (1040): Parser "_part = /(?!\\d)\\w+/" did not match: »{ read } from './rea ...«

code link: https://github.com/hamed-musallam/nmr-load-save/blob/master/src/index.ts How should I fix it?

jecki commented 2 months ago

Presently, this is not supported by ts2python. If you could suggest some suitable Python-code for the example, I might add it. I thoght of translating

export { read } from './reader/read'; to ìmport read from reader.read

and export * from './migration/MigrationManager'; tp from migration.MigrationManager import *

What would you suggest.