# JavaScriptAppResource

- Module: [CommunityToolkit.Aspire.Hosting.JavaScript.Extensions](/reference/api/go/communitytoolkit.aspire.hosting.javascript.extensions.md)
- Version: `13.6.1`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

## Definition

```go
type JavaScriptAppResource interface{}
```

## Methods

- [WithMappedEndpointPort](/reference/api/go/communitytoolkit.aspire.hosting.javascript.extensions/javascriptappresource/withmappedendpointport.md) -- `method` -- Maps the endpoint port for the JavaScript app resource to the appropriate command line argument
  ```go
  WithMappedEndpointPort(options ...*WithMappedEndpointPortOptions) JavaScriptAppResource
  ```
