Skip to content

fix the declare_and_export example - #3

Open
timbod7 wants to merge 1 commit into
spencerkohan:mainfrom
timbod7:fix-example
Open

fix the declare_and_export example#3
timbod7 wants to merge 1 commit into
spencerkohan:mainfrom
timbod7:fix-example

Conversation

@timbod7

@timbod7 timbod7 commented Jun 18, 2025

Copy link
Copy Markdown

Currently the example fails with:

$ cargo run --example declare_and_export
...
Error formatting typescript: Expected ';', got 'export' at file:///type_2.ts:1:31

  import { Bar } from './bar.ts'export type Foo = { bar: Bar;  }  ; 
                                ~~~~~~
$

With this tweak it runs successfully to completion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant