Skip to content

Commit

Permalink
Adjust the location of error files
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbFlying committed Feb 26, 2024
1 parent 06ddb37 commit e67b925
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/classConnect/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { PrimitiveState } from "../types";
import type { ClassStoreType } from "./types";
import type { Store, ClassThisPointerType } from "../store/types";
import { storeErrorProcessing } from "../store/errors";
import { storeErrorProcessing } from "../errors";
import {
__CLASS_CONNECT_STORE_KEY__, __CLASS_THIS_POINTER_STORES_KEY__, __CLASS_STATE_REF_SET_KEY__,
__CLASS_UNMOUNT_PROCESSING_KEY__, __CLASS_INITIAL_STATE_RETRIEVE_KEY__,
Expand Down
10 changes: 5 additions & 5 deletions src/store/errors.ts → src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { PrimitiveState } from "../types";
import type { StoreOptions, StateCallback } from "./types";
import { __REGENERATIVE_SYSTEM_KEY__ } from "./static";
import { __DEV__ } from "../static";
import { whatsType } from "../utils";
import type { PrimitiveState } from "./types";
import type { StoreOptions, StateCallback } from "./store/types";
import { __REGENERATIVE_SYSTEM_KEY__ } from "./store/static";
import { __DEV__ } from "./static";
import { whatsType } from "./utils";

// Check whether the store is generated by Resy's createStore
export const storeErrorProcessing = (
Expand Down
2 changes: 1 addition & 1 deletion src/scheduler/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { MapType, PrimitiveState, Callback, ValueOf } from "../types";
import type { SchedulerType } from "./types";
import type { StateCallbackItem, State, StateCallback } from "../store/types";
import { stateCallbackErrorProcessing } from "../store/errors";
import { stateCallbackErrorProcessing } from "../errors";
import { mapToObject } from "../store/utils";

/**
Expand Down
2 changes: 1 addition & 1 deletion src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { hasOwnProperty } from "../utils";
import {
stateErrorProcessing, optionsErrorProcessing, protoPointStoreErrorProcessing,
subscribeErrorProcessing, storeErrorProcessing, setOptionsErrorProcessing,
} from "./errors";
} from "../errors";
import {
pushTask, connectHookUse, finallyBatchProcessing, connectStore,
mapToObject, objectToMap, classUpdater, connectClassUse,
Expand Down

0 comments on commit e67b925

Please sign in to comment.