Skip to content

Commit

Permalink
feat: internal access modifier (#6980)
Browse files Browse the repository at this point in the history
Closes #4156

It's been a while since I've worked with the symbol lookup subsystem. This area is in dire need of refactoring, unfortunately the system is a little too broad to take on in this PR (I'm also not sure what the immediate fix is off the top of my head). Some of the issues:
- It's a bit confusing which `lookup_xxx` method should be called in different scenarios
- The logic for handling on access modifiers errors is split between two places (once inside `type_check.rs` for determining if field/method accesses are valid, and once inside `symbol_env.rs` for determining if looking up types within environments are valid)
- The logic also needs to be added/maintained separately for the LSP.

There are also some edge cases I intentionally avoided getting side tracked with to focus on just getting the initial feature working. For example, there might be cases we should look towards other languages for how to handle, like in what situations is it okay to subclass a method as internal.

I did some manual QA to validate that autocompletions work as expected with the language server.

## Checklist

- [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [x] Description explains motivation and solution
- [x] Tests added (always)
- [ ] Docs updated (only required for features)
- [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
  • Loading branch information
Chriscbr authored Aug 5, 2024
1 parent 2b42146 commit 9c36ce5
Show file tree
Hide file tree
Showing 21 changed files with 607 additions and 378 deletions.
2 changes: 1 addition & 1 deletion apps/vscode-wing/syntaxes/wing.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"patterns": [
{
"name": "keyword.control.flow.wing",
"match": "\\b(else|elif|if|return|throw|try|catch|finally|bring|as)\\b"
"match": "\\b(else|if|return|throw|try|catch|finally|bring|as)\\b"
},
{
"name": "keyword.control.loop.wing",
Expand Down
7 changes: 7 additions & 0 deletions apps/wing/src/commands/pack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ describe("wing pack", () => {
[
"$preflightTypesMap",
"FavoriteNumbers",
"FavoritePlanets",
"InternalClass",
"PublicClass",
"Store",
"default",
"subdir",
Expand All @@ -234,6 +237,10 @@ describe("wing pack", () => {

expect(Object.keys(tarballContents).sort()).toMatchInlineSnapshot(`
[
"$lib/.wing/inflight.InternalClass-2.cjs",
"$lib/.wing/inflight.InternalClass-2.cjs.map",
"$lib/.wing/inflight.PublicClass-2.cjs",
"$lib/.wing/inflight.PublicClass-2.cjs.map",
"$lib/.wing/inflight.Store-2.cjs",
"$lib/.wing/inflight.Store-2.cjs.map",
"$lib/.wing/inflight.Util-1.cjs",
Expand Down
2 changes: 1 addition & 1 deletion docs/api/04-standard-library/std/resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Operations to lift on the object.

- *Extends:* <a href="#@winglang/sdk.std.ILiftable">ILiftable</a>

- *Implemented By:* <a href="#@winglang/sdk.aws.BucketRef">BucketRef</a>, <a href="#@winglang/sdk.aws.Domain">Domain</a>, <a href="#@winglang/sdk.aws.FunctionRef">FunctionRef</a>, <a href="#@winglang/sdk.aws.QueueRef">QueueRef</a>, <a href="#@winglang/sdk.aws.SecretRef">SecretRef</a>, <a href="#@winglang/sdk.cloud.Api">Api</a>, <a href="#@winglang/sdk.cloud.Bucket">Bucket</a>, <a href="#@winglang/sdk.cloud.Counter">Counter</a>, <a href="#@winglang/sdk.cloud.Domain">Domain</a>, <a href="#@winglang/sdk.cloud.Endpoint">Endpoint</a>, <a href="#@winglang/sdk.cloud.Function">Function</a>, <a href="#@winglang/sdk.cloud.OnDeploy">OnDeploy</a>, <a href="#@winglang/sdk.cloud.Queue">Queue</a>, <a href="#@winglang/sdk.cloud.Schedule">Schedule</a>, <a href="#@winglang/sdk.cloud.Secret">Secret</a>, <a href="#@winglang/sdk.cloud.Service">Service</a>, <a href="#@winglang/sdk.cloud.Topic">Topic</a>, <a href="#@winglang/sdk.cloud.Website">Website</a>, <a href="#@winglang/sdk.sim.Container">Container</a>, <a href="#@winglang/sdk.sim.Policy">Policy</a>, <a href="#@winglang/sdk.sim.Resource">Resource</a>, <a href="#@winglang/sdk.sim.State">State</a>, <a href="#@winglang/sdk.std.AutoIdResource">AutoIdResource</a>, <a href="#@winglang/sdk.std.Resource">Resource</a>, <a href="#@winglang/sdk.std.Test">Test</a>, <a href="#@winglang/sdk.std.TestRunner">TestRunner</a>, <a href="#@winglang/sdk.ui.Button">Button</a>, <a href="#@winglang/sdk.ui.Field">Field</a>, <a href="#@winglang/sdk.ui.FileBrowser">FileBrowser</a>, <a href="#@winglang/sdk.ui.HttpClient">HttpClient</a>, <a href="#@winglang/sdk.ui.Section">Section</a>, <a href="#@winglang/sdk.ui.Table">Table</a>, <a href="#@winglang/sdk.ui.ValueField">ValueField</a>, <a href="#@winglang/sdk.ui.VisualComponent">VisualComponent</a>, <a href="#@winglang/sdk.aws.IAwsFunction">IAwsFunction</a>, <a href="#@winglang/sdk.aws.IAwsInflightHost">IAwsInflightHost</a>, <a href="#@winglang/sdk.cloud.IApiEndpointHandler">IApiEndpointHandler</a>, <a href="#@winglang/sdk.cloud.IBucketEventHandler">IBucketEventHandler</a>, <a href="#@winglang/sdk.cloud.IFunctionHandler">IFunctionHandler</a>, <a href="#@winglang/sdk.cloud.IOnDeployHandler">IOnDeployHandler</a>, <a href="#@winglang/sdk.cloud.IQueueSetConsumerHandler">IQueueSetConsumerHandler</a>, <a href="#@winglang/sdk.cloud.IScheduleOnTickHandler">IScheduleOnTickHandler</a>, <a href="#@winglang/sdk.cloud.IServiceHandler">IServiceHandler</a>, <a href="#@winglang/sdk.cloud.IServiceStopHandler">IServiceStopHandler</a>, <a href="#@winglang/sdk.cloud.ITopicOnMessageHandler">ITopicOnMessageHandler</a>, <a href="#@winglang/sdk.sim.IResourceFactory">IResourceFactory</a>, <a href="#@winglang/sdk.sim.ISimulatorInflightHost">ISimulatorInflightHost</a>, <a href="#@winglang/sdk.sim.ISimulatorResource">ISimulatorResource</a>, <a href="#@winglang/sdk.std.IHostedLiftable">IHostedLiftable</a>, <a href="#@winglang/sdk.std.IInflight">IInflight</a>, <a href="#@winglang/sdk.std.IInflightHost">IInflightHost</a>, <a href="#@winglang/sdk.std.IResource">IResource</a>, <a href="#@winglang/sdk.std.ITestHandler">ITestHandler</a>, <a href="#@winglang/sdk.ui.IButtonHandler">IButtonHandler</a>, <a href="#@winglang/sdk.ui.IFieldHandler">IFieldHandler</a>, <a href="#@winglang/sdk.ui.IFileBrowserDeleteHandler">IFileBrowserDeleteHandler</a>, <a href="#@winglang/sdk.ui.IFileBrowserGetHandler">IFileBrowserGetHandler</a>, <a href="#@winglang/sdk.ui.IFileBrowserListHandler">IFileBrowserListHandler</a>, <a href="#@winglang/sdk.ui.IFileBrowserPutHandler">IFileBrowserPutHandler</a>, <a href="#@winglang/sdk.ui.IHttpClientGetApiSpecHandler">IHttpClientGetApiSpecHandler</a>, <a href="#@winglang/sdk.ui.IHttpClientGetUrlHandler">IHttpClientGetUrlHandler</a>, <a href="#@winglang/sdk.ui.ITableDeleteHandler">ITableDeleteHandler</a>, <a href="#@winglang/sdk.ui.ITableGetHandler">ITableGetHandler</a>, <a href="#@winglang/sdk.ui.ITablePrimaryKeyHandler">ITablePrimaryKeyHandler</a>, <a href="#@winglang/sdk.ui.ITableScanHandler">ITableScanHandler</a>, <a href="#@winglang/sdk.ui.ITableUpdateHandler">ITableUpdateHandler</a>, <a href="#@winglang/sdk.ui.ITableputHandler">ITableputHandler</a>, <a href="#@winglang/sdk.util.IPredicateHandler">IPredicateHandler</a>
- *Implemented By:* <a href="#@winglang/sdk.aws.BucketRef">BucketRef</a>, <a href="#@winglang/sdk.aws.Domain">Domain</a>, <a href="#@winglang/sdk.aws.FunctionRef">FunctionRef</a>, <a href="#@winglang/sdk.aws.QueueRef">QueueRef</a>, <a href="#@winglang/sdk.aws.SecretRef">SecretRef</a>, <a href="#@winglang/sdk.cloud.Api">Api</a>, <a href="#@winglang/sdk.cloud.Bucket">Bucket</a>, <a href="#@winglang/sdk.cloud.Counter">Counter</a>, <a href="#@winglang/sdk.cloud.Domain">Domain</a>, <a href="#@winglang/sdk.cloud.Endpoint">Endpoint</a>, <a href="#@winglang/sdk.cloud.Function">Function</a>, <a href="#@winglang/sdk.cloud.OnDeploy">OnDeploy</a>, <a href="#@winglang/sdk.cloud.Queue">Queue</a>, <a href="#@winglang/sdk.cloud.Schedule">Schedule</a>, <a href="#@winglang/sdk.cloud.Secret">Secret</a>, <a href="#@winglang/sdk.cloud.Service">Service</a>, <a href="#@winglang/sdk.cloud.Topic">Topic</a>, <a href="#@winglang/sdk.cloud.Website">Website</a>, <a href="#@winglang/sdk.sim.Container">Container</a>, <a href="#@winglang/sdk.sim.Policy">Policy</a>, <a href="#@winglang/sdk.sim.Resource">Resource</a>, <a href="#@winglang/sdk.sim.State">State</a>, <a href="#@winglang/sdk.std.AutoIdResource">AutoIdResource</a>, <a href="#@winglang/sdk.std.Resource">Resource</a>, <a href="#@winglang/sdk.std.Test">Test</a>, <a href="#@winglang/sdk.std.TestRunner">TestRunner</a>, <a href="#@winglang/sdk.ui.Button">Button</a>, <a href="#@winglang/sdk.ui.Field">Field</a>, <a href="#@winglang/sdk.ui.FileBrowser">FileBrowser</a>, <a href="#@winglang/sdk.ui.HttpClient">HttpClient</a>, <a href="#@winglang/sdk.ui.Section">Section</a>, <a href="#@winglang/sdk.ui.Table">Table</a>, <a href="#@winglang/sdk.ui.ValueField">ValueField</a>, <a href="#@winglang/sdk.ui.VisualComponent">VisualComponent</a>, <a href="#@winglang/sdk.aws.IAwsFunction">IAwsFunction</a>, <a href="#@winglang/sdk.aws.IAwsInflightHost">IAwsInflightHost</a>, <a href="#@winglang/sdk.cloud.IApiEndpointHandler">IApiEndpointHandler</a>, <a href="#@winglang/sdk.cloud.IBucketEventHandler">IBucketEventHandler</a>, <a href="#@winglang/sdk.cloud.IFunctionHandler">IFunctionHandler</a>, <a href="#@winglang/sdk.cloud.IOnDeployHandler">IOnDeployHandler</a>, <a href="#@winglang/sdk.cloud.IQueueSetConsumerHandler">IQueueSetConsumerHandler</a>, <a href="#@winglang/sdk.cloud.IScheduleOnTickHandler">IScheduleOnTickHandler</a>, <a href="#@winglang/sdk.cloud.IServiceHandler">IServiceHandler</a>, <a href="#@winglang/sdk.cloud.IServiceStopHandler">IServiceStopHandler</a>, <a href="#@winglang/sdk.cloud.ITopicOnMessageHandler">ITopicOnMessageHandler</a>, <a href="#@winglang/sdk.sim.IResourceFactory">IResourceFactory</a>, <a href="#@winglang/sdk.sim.ISimulatorInflightHost">ISimulatorInflightHost</a>, <a href="#@winglang/sdk.sim.ISimulatorResource">ISimulatorResource</a>, <a href="#@winglang/sdk.std.IHostedLiftable">IHostedLiftable</a>, <a href="#@winglang/sdk.std.IInflight">IInflight</a>, <a href="#@winglang/sdk.std.IInflightHost">IInflightHost</a>, <a href="#@winglang/sdk.std.IResource">IResource</a>, <a href="#@winglang/sdk.std.ITestHandler">ITestHandler</a>, <a href="#@winglang/sdk.ui.IButtonHandler">IButtonHandler</a>, <a href="#@winglang/sdk.ui.IFieldHandler">IFieldHandler</a>, <a href="#@winglang/sdk.ui.IFileBrowserDeleteHandler">IFileBrowserDeleteHandler</a>, <a href="#@winglang/sdk.ui.IFileBrowserGetHandler">IFileBrowserGetHandler</a>, <a href="#@winglang/sdk.ui.IFileBrowserListHandler">IFileBrowserListHandler</a>, <a href="#@winglang/sdk.ui.IFileBrowserPutHandler">IFileBrowserPutHandler</a>, <a href="#@winglang/sdk.ui.IHttpClientGetApiSpecHandler">IHttpClientGetApiSpecHandler</a>, <a href="#@winglang/sdk.ui.IHttpClientGetUrlHandler">IHttpClientGetUrlHandler</a>, <a href="#@winglang/sdk.ui.ITableScanHandler">ITableScanHandler</a>, <a href="#@winglang/sdk.util.IPredicateHandler">IPredicateHandler</a>

A liftable object that needs to be registered on the host as part of the lifting process.

Expand Down
279 changes: 1 addition & 278 deletions docs/api/04-standard-library/ui/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -729,22 +729,15 @@ A table can be used to browse files.
```wing
bring ui;
new ui.Table(label: str, handlers: TableHandlers);
new ui.Table(handlers: TableHandlers);
```

| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@winglang/sdk.ui.Table.Initializer.parameter.label">label</a></code> | <code>str</code> | *No description.* |
| <code><a href="#@winglang/sdk.ui.Table.Initializer.parameter.handlers">handlers</a></code> | <code><a href="#@winglang/sdk.ui.TableHandlers">TableHandlers</a></code> | *No description.* |

---

##### `label`<sup>Required</sup> <a name="label" id="@winglang/sdk.ui.Table.Initializer.parameter.label"></a>

- *Type:* str

---

##### `handlers`<sup>Required</sup> <a name="handlers" id="@winglang/sdk.ui.Table.Initializer.parameter.handlers"></a>

- *Type:* <a href="#@winglang/sdk.ui.TableHandlers">TableHandlers</a>
Expand Down Expand Up @@ -1253,60 +1246,7 @@ let TableHandlers = ui.TableHandlers{ ... };

| **Name** | **Type** | **Description** |
| --- | --- | --- |
| <code><a href="#@winglang/sdk.ui.TableHandlers.property.delete">delete</a></code> | <code><a href="#@winglang/sdk.ui.ITableDeleteHandler">ITableDeleteHandler</a></code> | Handler for deleting a row. |
| <code><a href="#@winglang/sdk.ui.TableHandlers.property.get">get</a></code> | <code><a href="#@winglang/sdk.ui.ITableGetHandler">ITableGetHandler</a></code> | Handler for getting a row. |
| <code><a href="#@winglang/sdk.ui.TableHandlers.property.primaryKey">primaryKey</a></code> | <code><a href="#@winglang/sdk.ui.ITablePrimaryKeyHandler">ITablePrimaryKeyHandler</a></code> | Handler for getting the primary key. |
| <code><a href="#@winglang/sdk.ui.TableHandlers.property.put">put</a></code> | <code><a href="#@winglang/sdk.ui.ITableputHandler">ITableputHandler</a></code> | Handler for putting a row. |
| <code><a href="#@winglang/sdk.ui.TableHandlers.property.scan">scan</a></code> | <code><a href="#@winglang/sdk.ui.ITableScanHandler">ITableScanHandler</a></code> | Handler for scanning rows. |
| <code><a href="#@winglang/sdk.ui.TableHandlers.property.update">update</a></code> | <code><a href="#@winglang/sdk.ui.ITableUpdateHandler">ITableUpdateHandler</a></code> | Handler for updatete a row. |

---

##### `delete`<sup>Required</sup> <a name="delete" id="@winglang/sdk.ui.TableHandlers.property.delete"></a>

```wing
delete: ITableDeleteHandler;
```

- *Type:* <a href="#@winglang/sdk.ui.ITableDeleteHandler">ITableDeleteHandler</a>

Handler for deleting a row.

---

##### `get`<sup>Required</sup> <a name="get" id="@winglang/sdk.ui.TableHandlers.property.get"></a>

```wing
get: ITableGetHandler;
```

- *Type:* <a href="#@winglang/sdk.ui.ITableGetHandler">ITableGetHandler</a>

Handler for getting a row.

---

##### `primaryKey`<sup>Required</sup> <a name="primaryKey" id="@winglang/sdk.ui.TableHandlers.property.primaryKey"></a>

```wing
primaryKey: ITablePrimaryKeyHandler;
```

- *Type:* <a href="#@winglang/sdk.ui.ITablePrimaryKeyHandler">ITablePrimaryKeyHandler</a>

Handler for getting the primary key.

---

##### `put`<sup>Required</sup> <a name="put" id="@winglang/sdk.ui.TableHandlers.property.put"></a>

```wing
put: ITableputHandler;
```

- *Type:* <a href="#@winglang/sdk.ui.ITableputHandler">ITableputHandler</a>

Handler for putting a row.

---

Expand All @@ -1322,18 +1262,6 @@ Handler for scanning rows.

---

##### `update`<sup>Required</sup> <a name="update" id="@winglang/sdk.ui.TableHandlers.property.update"></a>

```wing
update: ITableUpdateHandler;
```

- *Type:* <a href="#@winglang/sdk.ui.ITableUpdateHandler">ITableUpdateHandler</a>

Handler for updatete a row.

---

## Protocols <a name="Protocols" id="Protocols"></a>

### IButtonHandler <a name="IButtonHandler" id="@winglang/sdk.ui.IButtonHandler"></a>
Expand Down Expand Up @@ -1640,164 +1568,6 @@ inflight handle(): str
Function that returns the URL to make a request to.


### ITableDeleteHandler <a name="ITableDeleteHandler" id="@winglang/sdk.ui.ITableDeleteHandler"></a>

- *Extends:* <a href="#@winglang/sdk.std.IInflight">IInflight</a>

- *Implemented By:* <a href="#@winglang/sdk.ui.ITableDeleteHandler">ITableDeleteHandler</a>

**Inflight client:** [@winglang/sdk.ui.ITableDeleteHandlerClient](#@winglang/sdk.ui.ITableDeleteHandlerClient)

A resource with an inflight "handle" method that can be passed to `ITable`.



### ITableDeleteHandlerClient <a name="ITableDeleteHandlerClient" id="@winglang/sdk.ui.ITableDeleteHandlerClient"></a>

- *Implemented By:* <a href="#@winglang/sdk.ui.ITableDeleteHandlerClient">ITableDeleteHandlerClient</a>

Inflight client for `ITableDeleteHandler`.

#### Methods <a name="Methods" id="Methods"></a>

| **Name** | **Description** |
| --- | --- |
| <code><a href="#@winglang/sdk.ui.ITableDeleteHandlerClient.handle">handle</a></code> | Function that performs an action. |

---

##### `handle` <a name="handle" id="@winglang/sdk.ui.ITableDeleteHandlerClient.handle"></a>

```wing
inflight handle(key: str): void
```

Function that performs an action.

###### `key`<sup>Required</sup> <a name="key" id="@winglang/sdk.ui.ITableDeleteHandlerClient.handle.parameter.key"></a>

- *Type:* str

---


### ITableGetHandler <a name="ITableGetHandler" id="@winglang/sdk.ui.ITableGetHandler"></a>

- *Extends:* <a href="#@winglang/sdk.std.IInflight">IInflight</a>

- *Implemented By:* <a href="#@winglang/sdk.ui.ITableGetHandler">ITableGetHandler</a>

**Inflight client:** [@winglang/sdk.ui.ITableGetHandlerClient](#@winglang/sdk.ui.ITableGetHandlerClient)

A resource with an inflight "handle" method that can be passed to `ITable`.



### ITableGetHandlerClient <a name="ITableGetHandlerClient" id="@winglang/sdk.ui.ITableGetHandlerClient"></a>

- *Implemented By:* <a href="#@winglang/sdk.ui.ITableGetHandlerClient">ITableGetHandlerClient</a>

Inflight client for `ITableGetHandler`.

#### Methods <a name="Methods" id="Methods"></a>

| **Name** | **Description** |
| --- | --- |
| <code><a href="#@winglang/sdk.ui.ITableGetHandlerClient.handle">handle</a></code> | Function that performs an action. |

---

##### `handle` <a name="handle" id="@winglang/sdk.ui.ITableGetHandlerClient.handle"></a>

```wing
inflight handle(key: str): Json
```

Function that performs an action.

###### `key`<sup>Required</sup> <a name="key" id="@winglang/sdk.ui.ITableGetHandlerClient.handle.parameter.key"></a>

- *Type:* str

---


### ITablePrimaryKeyHandler <a name="ITablePrimaryKeyHandler" id="@winglang/sdk.ui.ITablePrimaryKeyHandler"></a>

- *Extends:* <a href="#@winglang/sdk.std.IInflight">IInflight</a>

- *Implemented By:* <a href="#@winglang/sdk.ui.ITablePrimaryKeyHandler">ITablePrimaryKeyHandler</a>

**Inflight client:** [@winglang/sdk.ui.ITablePrimaryKeyHandlerClient](#@winglang/sdk.ui.ITablePrimaryKeyHandlerClient)

A resource with an inflight "handle" method that can be passed to `ITable`.



### ITablePrimaryKeyHandlerClient <a name="ITablePrimaryKeyHandlerClient" id="@winglang/sdk.ui.ITablePrimaryKeyHandlerClient"></a>

- *Implemented By:* <a href="#@winglang/sdk.ui.ITablePrimaryKeyHandlerClient">ITablePrimaryKeyHandlerClient</a>

Inflight client for `ITablePrimaryKeyHandler`.

#### Methods <a name="Methods" id="Methods"></a>

| **Name** | **Description** |
| --- | --- |
| <code><a href="#@winglang/sdk.ui.ITablePrimaryKeyHandlerClient.handle">handle</a></code> | Function that performs an action. |

---

##### `handle` <a name="handle" id="@winglang/sdk.ui.ITablePrimaryKeyHandlerClient.handle"></a>

```wing
inflight handle(): str
```

Function that performs an action.


### ITableputHandler <a name="ITableputHandler" id="@winglang/sdk.ui.ITableputHandler"></a>

- *Extends:* <a href="#@winglang/sdk.std.IInflight">IInflight</a>

- *Implemented By:* <a href="#@winglang/sdk.ui.ITableputHandler">ITableputHandler</a>

**Inflight client:** [@winglang/sdk.ui.ITablePutHandlerClient](#@winglang/sdk.ui.ITablePutHandlerClient)

A resource with an inflight "handle" method that can be passed to `ITable`.



### ITablePutHandlerClient <a name="ITablePutHandlerClient" id="@winglang/sdk.ui.ITablePutHandlerClient"></a>

- *Implemented By:* <a href="#@winglang/sdk.ui.ITablePutHandlerClient">ITablePutHandlerClient</a>

Inflight client for `ITableVoidHandler`.

#### Methods <a name="Methods" id="Methods"></a>

| **Name** | **Description** |
| --- | --- |
| <code><a href="#@winglang/sdk.ui.ITablePutHandlerClient.handle">handle</a></code> | Function that performs an action. |

---

##### `handle` <a name="handle" id="@winglang/sdk.ui.ITablePutHandlerClient.handle"></a>

```wing
inflight handle(item: str): void
```

Function that performs an action.

###### `item`<sup>Required</sup> <a name="item" id="@winglang/sdk.ui.ITablePutHandlerClient.handle.parameter.item"></a>

- *Type:* str

---


### ITableScanHandler <a name="ITableScanHandler" id="@winglang/sdk.ui.ITableScanHandler"></a>

- *Extends:* <a href="#@winglang/sdk.std.IInflight">IInflight</a>
Expand Down Expand Up @@ -1833,50 +1603,3 @@ inflight handle(): MutArray<Json>
Function that performs an action.


### ITableUpdateHandler <a name="ITableUpdateHandler" id="@winglang/sdk.ui.ITableUpdateHandler"></a>

- *Extends:* <a href="#@winglang/sdk.std.IInflight">IInflight</a>

- *Implemented By:* <a href="#@winglang/sdk.ui.ITableUpdateHandler">ITableUpdateHandler</a>

**Inflight client:** [@winglang/sdk.ui.ITableUpdateHandlerClient](#@winglang/sdk.ui.ITableUpdateHandlerClient)

A resource with an inflight "handle" method that can be passed to `ITable`.



### ITableUpdateHandlerClient <a name="ITableUpdateHandlerClient" id="@winglang/sdk.ui.ITableUpdateHandlerClient"></a>

- *Implemented By:* <a href="#@winglang/sdk.ui.ITableUpdateHandlerClient">ITableUpdateHandlerClient</a>

Inflight client for `ITableVoidHandler`.

#### Methods <a name="Methods" id="Methods"></a>

| **Name** | **Description** |
| --- | --- |
| <code><a href="#@winglang/sdk.ui.ITableUpdateHandlerClient.handle">handle</a></code> | Function that performs an action. |

---

##### `handle` <a name="handle" id="@winglang/sdk.ui.ITableUpdateHandlerClient.handle"></a>

```wing
inflight handle(key: str, item: str): void
```

Function that performs an action.

###### `key`<sup>Required</sup> <a name="key" id="@winglang/sdk.ui.ITableUpdateHandlerClient.handle.parameter.key"></a>

- *Type:* str

---

###### `item`<sup>Required</sup> <a name="item" id="@winglang/sdk.ui.ITableUpdateHandlerClient.handle.parameter.item"></a>

- *Type:* str

---


Loading

0 comments on commit 9c36ce5

Please sign in to comment.