diff options
Diffstat (limited to 'ext/crypto/lib.rs')
-rw-r--r-- | ext/crypto/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/crypto/lib.rs b/ext/crypto/lib.rs index a2dc8e626..3515013f8 100644 --- a/ext/crypto/lib.rs +++ b/ext/crypto/lib.rs @@ -51,6 +51,7 @@ use sha2::Sha256; use sha2::Sha384; use sha2::Sha512; use std::convert::TryFrom; +use std::path::PathBuf; pub use rand; // Re-export rand @@ -881,3 +882,7 @@ pub fn op_crypto_unwrap_key( _ => Err(type_error("Unsupported algorithm")), } } + +pub fn get_declaration() -> PathBuf { + PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_crypto.d.ts") +} |