Skip to content

Commit

Permalink
fix the MountingOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pikax committed Jun 15, 2020
1 parent 26cde00 commit 9af9de2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ type SlotDictionary = {
}

interface MountingOptions<Props, Data = {}> {
data?: () => Data extends object ? Partial<Data> : never
data?: () => {} extends Data
? never
: Data extends object
? Partial<Data>
: never
props?: Props
attrs?: Record<string, unknown>
slots?: SlotDictionary & {
Expand Down

0 comments on commit 9af9de2

Please sign in to comment.