Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Conduitry committed Jun 25, 2020
1 parent 2a0ed09 commit 1bab7d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/motion/tweened.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function tweened<T>(value?: T, defaults: Options<T> = {}): Tweened<T> {
let task: Task;
let target_value = value;

function set(new_value: T, opts: Options<T> = {}) {
function set(new_value: T, opts?: Options<T>) {
if (value == null) {
store.set(value = new_value);
return Promise.resolve();
Expand Down Expand Up @@ -137,7 +137,7 @@ export function tweened<T>(value?: T, defaults: Options<T> = {}): Tweened<T> {

return {
set,
update: (fn, opts: Options<T> = {}) => set(fn(target_value, value), opts),
update: (fn, opts?: Options<T>) => set(fn(target_value, value), opts),
subscribe: store.subscribe
};
}

0 comments on commit 1bab7d7

Please sign in to comment.