Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Undo commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Sep 30, 2024
1 parent 0d69d01 commit 6d93c31
Show file tree
Hide file tree
Showing 2 changed files with 283 additions and 299 deletions.
18 changes: 1 addition & 17 deletions bindings/tbdex_wasm/src/foreign_fetch.rs
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
use crate::errors::{map_err, Result};
use http_std::{Client, FetchOptions, Method, Response};
use js_sys::Promise;
use std::{collections::HashMap, sync::Arc};
use tbdex::errors::TbdexError;
use wasm_bindgen::{prelude::wasm_bindgen, JsValue};

use js_sys::Promise;
use wasm_bindgen_futures::JsFuture;

// #[wasm_bindgen]
// extern "C" {
// #[wasm_bindgen(
// typescript_type = "{ async fetch: (url: string, options?: WasmFetchOptions) => WasmResponse }"
// )]
// pub type ForeignFetchAsync;

// #[wasm_bindgen(method)]
// async fn fetch(
// this: &ForeignFetchAsync,
// url: &str,
// options: Option<WasmFetchOptions>,
// ) -> WasmResponse;
// }

#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(
Expand Down
Loading

0 comments on commit 6d93c31

Please sign in to comment.