summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/rustdoc.d.ts
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-04-02 12:39:58 -0500
committerbinarycat <binarycat@envs.net>2025-04-02 12:39:58 -0500
commit53ef53aed9cb43e6719f6f31aec82e05f236cd57 (patch)
tree5996cc0dcf7a6201a5b2d32258b3ffcf42c68fce /src/librustdoc/html/static/js/rustdoc.d.ts
parentae9173d7dd4a31806c950c90dcc331f1508b4d17 (diff)
downloadrust-53ef53aed9cb43e6719f6f31aec82e05f236cd57.tar.gz
rust-53ef53aed9cb43e6719f6f31aec82e05f236cd57.zip
settings.js: begin typechecking migration
this also makes `changeSetting` more robust in case it somehow
gets called before `main.js` has finished loading.
Diffstat (limited to 'src/librustdoc/html/static/js/rustdoc.d.ts')
-rw-r--r--src/librustdoc/html/static/js/rustdoc.d.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/js/rustdoc.d.ts b/src/librustdoc/html/static/js/rustdoc.d.ts
index 91a58fab86e..0465866e367 100644
--- a/src/librustdoc/html/static/js/rustdoc.d.ts
+++ b/src/librustdoc/html/static/js/rustdoc.d.ts
@@ -78,6 +78,8 @@ declare global {
         pending_implementors?: rustdoc.Implementors,
         register_type_impls?: function(rustdoc.TypeImpls): void,
         pending_type_impls?: rustdoc.TypeImpls,
+        rustdoc_add_line_numbers_to_examples?: function(),
+        rustdoc_remove_line_numbers_from_examples?: function(),
     }
     interface HTMLElement {
         /** Used by the popover tooltip code. */