mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Rename file to types.ts
This commit is contained in:
parent
69e67ad5ac
commit
4bdcafad4b
@ -19,7 +19,7 @@ import {encodeQueryParams, encodeBody} from "./common";
|
|||||||
import {HomeServerRequest} from "./HomeServerRequest";
|
import {HomeServerRequest} from "./HomeServerRequest";
|
||||||
import type {Reconnector} from "./Reconnector";
|
import type {Reconnector} from "./Reconnector";
|
||||||
import type {IEncodedBody} from "./common";
|
import type {IEncodedBody} from "./common";
|
||||||
import type {IRequestOptions, RequestFunction} from "../../platform/types/Platform";
|
import type {IRequestOptions, RequestFunction} from "../../platform/types/types";
|
||||||
import type {LogItem} from "../../logging/LogItem";
|
import type {LogItem} from "../../logging/LogItem";
|
||||||
|
|
||||||
type RequestMethod = "POST" | "GET" | "PUT";
|
type RequestMethod = "POST" | "GET" | "PUT";
|
||||||
|
@ -14,11 +14,9 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// todo: this file should be called something else?
|
|
||||||
|
|
||||||
import type {RequestResult} from "../web/dom/request/fetch.js";
|
import type {RequestResult} from "../web/dom/request/fetch.js";
|
||||||
import type {IEncodedBody} from "../../matrix/net/common";
|
import type {IEncodedBody} from "../../matrix/net/common";
|
||||||
import {LogItem} from "../../logging/LogItem";
|
import type {LogItem} from "../../logging/LogItem";
|
||||||
|
|
||||||
export interface IRequestOptions {
|
export interface IRequestOptions {
|
||||||
uploadProgress?: (loadedBytes: number) => void;
|
uploadProgress?: (loadedBytes: number) => void;
|
Loading…
Reference in New Issue
Block a user