forked from mystiq/hydrogen-web
Convert error.js to ts
This commit is contained in:
parent
ef53a12f7a
commit
4ce7634201
10 changed files with 10 additions and 10 deletions
|
@ -38,7 +38,7 @@ export class HomeServerError extends Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export {AbortError} from "../utils/error.js";
|
export {AbortError} from "../utils/error";
|
||||||
|
|
||||||
export class ConnectionError extends Error {
|
export class ConnectionError extends Error {
|
||||||
constructor(message, isTimeout) {
|
constructor(message, isTimeout) {
|
||||||
|
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {AbortError} from "../../utils/error.js";
|
import {AbortError} from "../../utils/error";
|
||||||
|
|
||||||
export class ExponentialRetryDelay {
|
export class ExponentialRetryDelay {
|
||||||
constructor(createTimeout) {
|
constructor(createTimeout) {
|
||||||
|
|
|
@ -15,7 +15,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {AbortError} from "../../utils/error.js";
|
import {AbortError} from "../../utils/error";
|
||||||
import {HomeServerError} from "../error.js";
|
import {HomeServerError} from "../error.js";
|
||||||
import {HomeServerApi} from "./HomeServerApi.js";
|
import {HomeServerApi} from "./HomeServerApi.js";
|
||||||
import {ExponentialRetryDelay} from "./ExponentialRetryDelay.js";
|
import {ExponentialRetryDelay} from "./ExponentialRetryDelay.js";
|
||||||
|
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {createEnum} from "../../../utils/enum.js";
|
import {createEnum} from "../../../utils/enum.js";
|
||||||
import {AbortError} from "../../../utils/error.js";
|
import {AbortError} from "../../../utils/error";
|
||||||
import {REDACTION_TYPE} from "../common.js";
|
import {REDACTION_TYPE} from "../common.js";
|
||||||
import {getRelationFromContent, getRelationTarget, setRelationTarget} from "../timeline/relations.js";
|
import {getRelationFromContent, getRelationTarget, setRelationTarget} from "../timeline/relations.js";
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ limitations under the License.
|
||||||
|
|
||||||
import { IDBRequestError } from "./error";
|
import { IDBRequestError } from "./error";
|
||||||
import { StorageError } from "../common";
|
import { StorageError } from "../common";
|
||||||
import { AbortError } from "../../../utils/error.js";
|
import { AbortError } from "../../../utils/error";
|
||||||
|
|
||||||
let needsSyncPromise = false;
|
let needsSyncPromise = false;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {AbortError} from "../utils/error.js";
|
import {AbortError} from "../utils/error";
|
||||||
|
|
||||||
export class BaseRequest {
|
export class BaseRequest {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {AbortError} from "../utils/error.js";
|
import {AbortError} from "../utils/error";
|
||||||
import {BaseObservable} from "./BaseObservable";
|
import {BaseObservable} from "./BaseObservable";
|
||||||
|
|
||||||
// like an EventEmitter, but doesn't have an event type
|
// like an EventEmitter, but doesn't have an event type
|
||||||
|
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {AbortError} from "../../../utils/error.js";
|
import {AbortError} from "../../../utils/error";
|
||||||
|
|
||||||
class Timeout {
|
class Timeout {
|
||||||
constructor(ms) {
|
constructor(ms) {
|
||||||
|
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {AbortError} from "../../../utils/error.js";
|
import {AbortError} from "../../../utils/error";
|
||||||
|
|
||||||
class WorkerState {
|
class WorkerState {
|
||||||
constructor(worker) {
|
constructor(worker) {
|
||||||
|
|
|
@ -15,7 +15,7 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export class AbortError extends Error {
|
export class AbortError extends Error {
|
||||||
get name() {
|
get name(): string {
|
||||||
return "AbortError";
|
return "AbortError";
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue