How can I use functions that exist in the html with <script setup>?

This issue has been created since 2022-11-04.

I have described the problem here: stackoverflow.

Basically <script setup> does not allow me to use this line:
declare function getCookie(cookie: string): string;

How can I tell <script setup> that a function already exists?

vue-bot wrote this answer on 2022-11-04

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-12-10
Star Count 201155
Watcher Count 6070
Fork Count 33134
Issue Count 595

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Failure to build for 16.2.4 9 2022-07-28 2022-12-02
does not work with this mp4 1 2022-11-12 2022-12-03
Support case when user e-mail is not unique 0 2019-09-30 2022-12-02
How to **programatically** check driver has launched successfully? 2 2022-05-12 2022-12-03
Potential Settler Sponsor here! 3 2021-02-16 2022-12-09
Can't see XML documentation. 3 2021-07-20 2022-05-01
Compiling fails (Linux x86_64), linking error for libphobos 4 2016-11-28 2022-12-02
Properly check for invalid characters when parsing URI-string 1 2019-08-28 2022-10-22
Explicitly document keyword arguments to HTTP.URI 0 2020-04-21 2022-10-15
s16/shinobi turns unplayable when you do a perfect in bonus stage 1 2021-06-12 2022-11-29
Configuration has no javadoc 0 2022-09-12 2022-10-30
Supabase URL needs `/rest/v1` appended 0 2022-08-23 2022-09-13
❓ Can't get it to work. 2 2022-05-09 2022-09-13
Reply command in chat doesn't auto fill on message received 0 2022-06-15 2022-08-28
[Unity 2021] Download Handlers allocate a lot of memory 0 2022-06-16 2022-07-25
Loading screen frozen when a player try to teleport from my scene to somewhere. 0 2022-06-16 2022-07-25
unshare: Race conditions with --kill-child 1 2021-11-03 2022-10-19
there is a bug! 3 2021-05-15 2021-12-16
Execute Tx which hash has been approved. 2 2021-05-25 2022-09-20
Can't input 0 into max scan depth 0 2022-11-15 2022-12-03
Support for Sublime Text 4 2 2021-07-20 2022-11-30
chore(deps): bump y18n from 4.0.0 to 4.0.1 1 2021-03-31 2022-01-30
Copy data from entire batch to/from device at once 0 2021-07-30 2022-12-09
Accept and convert non-FP32 input 0 2021-07-28 2022-11-25
Internal relational custom fields not properly updates schema 0 2022-02-10 2022-11-19
[replication]: mtls support 0 2022-11-07 2022-12-08
Random VPP crashes after the upgrade to upg-vpp version 1.2.2 1 2022-02-13 2022-11-13
How to add points at runtime? 1 2020-01-27 2022-11-12
[RFC] Increase PHP minimum required version 5 2022-05-03 2022-07-13
columns with "_" in their names are not supported 1 2021-03-24 2022-09-26
[Bug Report] el-select同时设置filterable、multiple时,会给组件内部input设置一个height,当浏览器大小发生变化时,无法自适应变化高度 2 2022-02-23 2022-10-18
www.fenerbahce.org 1 2022-01-10 2022-01-19
Update Codeowners 0 2021-09-15 2022-01-22
[Switzerland] Reviewing osmlint-osmium and osmlint data issues 0 2022-04-14 2022-11-27
subscriptions: should create a subscription with dead letter policy. failed 1 2021-12-09 2022-12-10
Cannot build `nanopb` 2 2020-07-23 2022-12-07
Scrolling Chart on Tile always scrolls further right when touch released 2 2022-12-03 2022-12-06
Azure App Service Plan always shows as to be updated even if no property was changed 5 2021-12-09 2022-11-20
Problem with sync container and Docker Desktop 4.3.1 (Apple Silicon) 4 2021-12-13 2022-11-29
TypeError: Cannot read property 'length' of undefined 2 2020-09-20 2022-12-03
KV CryptographyClient.getKeys 401s with Token not yet valid 5 2022-01-21 2022-12-08
SparseAdam fails when a parameter has an empty sparse gradient tensor 0 2022-07-29 2022-11-13
Flutter 2.10 Support. 4 2022-02-08 2022-11-01
Notify infa when we cut the next release 0 2022-10-18 2022-11-20
[Feature][Server] Discard ZooKeeper using raft 5 2021-11-03 2022-11-07
bm-overlay partially covers the view behind. 0 2019-10-28 2022-11-02
Why is the BLOOM example using a custom Pipeline object? 1 2022-11-01 2022-12-01
Druid connectProperties reflect error 3 2022-11-03 2022-11-12
Leaderelection: can't elect new leader 1 2022-06-29 2022-12-02
[Bug Report][3.0.0-beta.0] v-app full-height not working - page body does not expand to full height. 1 2022-04-02 2022-09-22