diff options
Diffstat (limited to 'ext/url/lib.rs')
-rw-r--r-- | ext/url/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/url/lib.rs b/ext/url/lib.rs index 0fa389fb0..46e363bc3 100644 --- a/ext/url/lib.rs +++ b/ext/url/lib.rs @@ -14,6 +14,7 @@ use deno_core::url::Url; use deno_core::Extension; use deno_core::ZeroCopyBuf; use std::panic::catch_unwind; +use std::path::PathBuf; use crate::urlpattern::op_urlpattern_parse; use crate::urlpattern::op_urlpattern_process_match_input; @@ -186,3 +187,7 @@ pub fn op_url_stringify_search_params( .finish(); Ok(search) } + +pub fn get_declaration() -> PathBuf { + PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_url.d.ts") +} |