Skip to content

Commit

Permalink
chore: fix unnecessary object type
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Dec 19, 2024
1 parent 54f5420 commit 1c413bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/model/src/-private/attr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export type AttrOptions<DV = PrimitiveValue | object | unknown[]> = {
defaultValue?: DV extends PrimitiveValue ? DV : () => DV;
};

function _attr(type?: string | AttrOptions, options?: AttrOptions & object) {
function _attr(type?: string | AttrOptions, options?: AttrOptions) {
if (typeof type === 'object') {
options = type;
type = undefined;
Expand Down

0 comments on commit 1c413bf

Please sign in to comment.