Skip to content

Commit

Permalink
refactor(unrefs): never -> unknow type
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcch committed Mar 24, 2023
1 parent b50bfc6 commit c926106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export type UnRefArrayItem<T extends any[]> = { [K in keyof T]: UnRef<T[K]> };
* @param arr
*/
export function unrefs<T extends any[]>(
arr: FullRefArrayItem<T> | ComputedRef<T> | never[],
arr: FullRefArrayItem<T> | ComputedRef<T> | unknown[],
): UnRefArrayItem<T> {
if (arr && Array.isArray(arr)) {
return arr.map((a) => unref(a)) as UnRefArrayItem<T>;
Expand Down

0 comments on commit c926106

Please sign in to comment.