Skip to content

Commit

Permalink
docs: update attachTo type from HTMLElement to Element
Browse files Browse the repository at this point in the history
  • Loading branch information
taku-y-9308 committed Mar 22, 2024
1 parent 45ce289 commit ee8912b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Note that when mocking dates/timers with Vitest, this must be called after

```ts
interface MountingOptions<Props, Data = {}> {
attachTo?: HTMLElement | string
attachTo?: Element | string
attrs?: Record<string, unknown>
data?: () => {} extends Data ? any : Data extends object ? Partial<Data> : any
props?: (RawProps & Props) | ({} extends Props ? null : never)
Expand Down Expand Up @@ -74,7 +74,7 @@ Specify the node to mount the component on. This is not available when using `re
**Signature:**

```ts
attachTo?: HTMLElement | string
attachTo?: Element | string
```

**Details:**
Expand Down Expand Up @@ -1882,7 +1882,7 @@ Creates a Wrapper that contains the mounted and rendered Vue component to test w
```ts
interface MountingOptions<Props, Data = {}> {
attachTo?: HTMLElement | string
attachTo?: Element | string
attrs?: Record<string, unknown>
data?: () => {} extends Data ? any : Data extends object ? Partial<Data> : any
props?: (RawProps & Props) | ({} extends Props ? null : never)
Expand Down
6 changes: 3 additions & 3 deletions docs/fr/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Crée un `Wrapper` qui contient le composant Vue monté et rendu pour le test.

```ts
interface MountingOptions<Props, Data = {}> {
attachTo?: HTMLElement | string
attachTo?: Element | string
attrs?: Record<string, unknown>
data?: () => {} extends Data ? any : Data extends object ? Partial<Data> : any
props?: (RawProps & Props) | ({} extends Props ? null : never)
Expand Down Expand Up @@ -72,7 +72,7 @@ Spécifie le nœud où monter le composant.
**Signature&nbsp;:**

```ts
attachTo?: HTMLElement | string
attachTo?: Element | string
```

**Utilisation&nbsp;:**
Expand Down Expand Up @@ -1870,7 +1870,7 @@ Crée un `Wrapper` qui contient le composant Vue monté et rendu pour le tester

```ts
interface MountingOptions<Props, Data = {}> {
attachTo?: HTMLElement | string
attachTo?: Element | string
attrs?: Record<string, unknown>
data?: () => {} extends Data ? any : Data extends object ? Partial<Data> : any
props?: (RawProps & Props) | ({} extends Props ? null : never)
Expand Down

0 comments on commit ee8912b

Please sign in to comment.