# DenoAppResource.withDenoWatch

- Module: [Aspire.Hosting.JavaScript](/reference/api/typescript/aspire.hosting.javascript.md)
- Defined on: [DenoAppResource](/reference/api/typescript/aspire.hosting.javascript/denoappresource.md)
- Version: `13.6.0`
- Kind: `method`

Enables `--watch` (or `--watch-hmr` when `hmr` is `true`).

## Definition

```typescript
interface DenoAppResource {
  // ... omitted for brevity
  withDenoWatch(hmr?: boolean): DenoAppResource;
}
```

## Signature

```typescript
withDenoWatch(hmr?: boolean): DenoAppResource
```

## Parameters

- `hmr` (`boolean`) `optional` `= False`

## Returns

[DenoAppResource](/reference/api/typescript/aspire.hosting.javascript/denoappresource.md) `builder`

## Defined on

- [DenoAppResource](/reference/api/typescript/aspire.hosting.javascript/denoappresource.md) -- `handle`
