Skip to content

Commit

Permalink
Fix getElement type in doc (#1466)
Browse files Browse the repository at this point in the history
* Fix `getElement` type

* Update other api types
  • Loading branch information
nwhittaker authored Oct 22, 2024
1 parent 5c2d6fa commit a6eb8b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/components/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ The following primitives can be imported from the `@stencil/core` package and us

- **forceUpdate()**: Schedules a new render of the given instance or element even if no state changed. Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.

__Type:__ `(ref: HTMLElement) => void`<br />
__Type:__ `(ref: any) => void`<br />
__Example:__
```ts
import { forceUpdate } from '@stencil/core'
Expand Down Expand Up @@ -163,7 +163,7 @@ The following primitives can be imported from the `@stencil/core` package and us

- **setMode()**: Sets the style mode of a component. Refer to the [Styling](./styling.md#style-modes) page for usage info.

__Type:__ `(ref: HTMLElement) => string`<br />
__Type:__ `((elm: HTMLElement) => string | undefined | null) => void`<br />
__Example:__
```ts
import { setMode } from '@stencil/core'
Expand All @@ -174,7 +174,7 @@ The following primitives can be imported from the `@stencil/core` package and us

- **getMode()**: Get the current style mode of your application. Refer to the [Styling](./styling.md#style-modes) page for usage info.

__Type:__ `(ref: HTMLElement) => string`<br />
__Type:__ `(ref: any) => string | undefined`<br />
__Example:__
```ts
import { getMode } from '@stencil/core'
Expand All @@ -184,7 +184,7 @@ The following primitives can be imported from the `@stencil/core` package and us

- **getElement()**: Retrieve a Stencil element for a given reference.

__Type:__ `(ref: getElement) => string`<br />
__Type:__ `(ref: any) => HTMLStencilElement`<br />
__Example:__
```ts
import { getElement } from '@stencil/core'
Expand Down

0 comments on commit a6eb8b3

Please sign in to comment.