Skip to content
Discussion options

You must be logged in to vote

You have to add an as any to get it working:

import * as slint from "slint-ui";

const ui = slint.loadFile('./ui/MainWindow.slint') as any;
const mainWindow = new ui.MainWindow();

mainWindow.ok_clicked = mainWindow.hide;

await mainWindow.run();

process.exit();

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DizzyHSlightlyVoided
Comment options

Answer selected by DizzyHSlightlyVoided
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants