Closed vanowm closed 2 years ago
You need install @tauri-apps/api
yarn add -D -W @tauri-apps/api
Oh, thank you. Does it also mean my assumption on how this works also wrong? Like to manipulate window I can do everything from within src-renderer
?
Total newbie here, trying convert from electron to tauri.
My understanding is that
src-tauri
is equal tomain
(background
) andsrc-renderer
torenderer
processes in electron (that's only my deductive reasoning after attempting use examples from API in renderer:which produces error
So if I want let's say dynamically change window title I'd need do it in the
src-tauri
code. I don't knowrust
, so I'd like to work solely withtypescript
, however neither the template nor any official documentation mention how to do so.Any help on this front?
Thank you.