Move interface to common.ts
This commit is contained in:
parent
2a3b13ecce
commit
9688a561b3
2 changed files with 9 additions and 8 deletions
|
@ -15,6 +15,14 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import type {BlobHandle} from "../../platform/web/dom/BlobHandle.js";
|
||||
|
||||
export interface BlobBody {
|
||||
mimeType: string;
|
||||
body: BlobHandle;
|
||||
length: number;
|
||||
}
|
||||
|
||||
export function encodeQueryParams(queryParams) {
|
||||
return Object.entries(queryParams || {})
|
||||
.filter(([, value]) => value !== undefined)
|
|
@ -15,14 +15,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import type {RequestResult} from "../web/dom/request/fetch.js";
|
||||
import type {BlobHandle} from "../web/dom/BlobHandle.js";
|
||||
|
||||
//ts-todo: This should go somewhere else?
|
||||
interface BlobBody {
|
||||
mimeType: string;
|
||||
body: BlobHandle;
|
||||
length: number;
|
||||
}
|
||||
import type {BlobBody} from "../../matrix/net/common";
|
||||
|
||||
interface IRequestOptions {
|
||||
uploadProgress?: (loadedBytes: number) => void;
|
||||
|
|
Reference in a new issue