Skip to content

Commit 6b7196b

Browse files
crisbetojelbourn
authored andcommitted
docs(portal): update return types (#11828)
Fixes the wrong return types being listed in the portal docs. Fixes #11825.
1 parent 48dda50 commit 6b7196b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/cdk/portal/portal.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ Portals and PortalOutlets are low-level building blocks that other concepts, suc
1010
built upon.
1111

1212
##### `Portal<T>`
13-
| Method | Description |
14-
| --- | --- |
15-
| `attach(PortalOutlet): Promise<T>` | Attaches the portal to a host. |
16-
| `detach(): Promise<void>` | Detaches the portal from its host. |
17-
| `isAttached: boolean` | Whether the portal is attached. |
13+
| Method | Description |
14+
| --------------------------- | ----------------------------------- |
15+
| `attach(PortalOutlet): T` | Attaches the portal to a host. |
16+
| `detach(): void` | Detaches the portal from its host. |
17+
| `isAttached: boolean` | Whether the portal is attached. |
1818

1919
##### `PortalOutlet`
20-
| Method | Description |
21-
| --- | --- |
22-
| `attach(Portal): Promise<void>` | Attaches a portal to the host. |
23-
| `detach(): Promise<void>` | Detaches the portal from the host. |
24-
| `dispose(): Promise<void>` | Permanently dispose the host. |
25-
| `hasAttached: boolean` | Whether a portal is attached to the host. |
20+
| Method | Description |
21+
| ----------------------- | ------------------------------------------- |
22+
| `attach(Portal): any` | Attaches a portal to the host. |
23+
| `detach(): any` | Detaches the portal from the host. |
24+
| `dispose(): void` | Permanently dispose the host. |
25+
| `hasAttached: boolean` | Whether a portal is attached to the host. |
2626

2727

2828
#### Portals in practice

0 commit comments

Comments
 (0)