Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
MiladSedhom committed May 2, 2024
1 parent 6295be1 commit d5e4e57
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { box } from "../box/box.svelte.js";
import { box } from "../box/box.svelte.js";
import { watch } from "../watch/watch.svelte.js";
import type { MaybeBoxOrGetter,BoxOrGetter } from "$lib/internal/types.js";
import type { MaybeBoxOrGetter, BoxOrGetter } from "$lib/internal/types.js";

type UseStateHistoryOptions = {
capacity?: MaybeBoxOrGetter<number>;
Expand All @@ -17,7 +17,7 @@ type LogEvent<T> = {
* @see {@link https://runed.dev/docs/functions/use-state-history}
*/
export function useStateHistory<T>(_value: BoxOrGetter<T>, options?: UseStateHistoryOptions) {
const b = box.from(_value)
const b = box.from(_value);
const capacity = box.from(options?.capacity);

const log = box<LogEvent<T>[]>([]);
Expand Down

0 comments on commit d5e4e57

Please sign in to comment.