Skip to content

Commit

Permalink
chore: correct TS type
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiboss committed Nov 22, 2024
1 parent d985ab3 commit b81cbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reactive/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const isObject = (x: unknown): x is object => typeof x === 'object' && x
export const isFunction = (x: unknown): x is (...args: any[]) => any => typeof x === 'function'

export function createObjectFromPrototype<T extends object>(target: T): T {
return Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target))
return (Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target))) as T
}

export function canProxy(x: unknown) {
Expand Down

0 comments on commit b81cbcd

Please sign in to comment.