> ISPO SDK documentation. [HTML](https://ispo.ai/docs/interfaces/core.FilesEditSessionCloseArgs.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Interface FilesEditSessionCloseArgs

```typescript
interface FilesEditSessionCloseArgs {
    returnTo?: boolean | FilesEditSessionReturnTo;
    sessionId: string;
}
```

Types: [returnTo](#returnto), [FilesEditSessionReturnTo](core.FilesEditSessionReturnTo.md), [sessionId](#sessionid)

##### Index

### <a id="properties"></a>Properties

[returnTo?](#returnto) [sessionId](#sessionid)

## <a id="properties-1"></a>Properties

### <a id="returnto"></a>`Optional`returnTo

```typescript
returnTo?: boolean | FilesEditSessionReturnTo
```

Types: [FilesEditSessionReturnTo](core.FilesEditSessionReturnTo.md)

Requests the return reveal after close. The destination is host-resolved from the session record — the `returnTo` captured at `files.openWith`, else the origin project — never from this argument. Pass `true` to accept that destination; a supplied object must echo it, and a `projectId` or `path` that disagrees with the session's resolved destination is a typed refusal, never a redirect. Omit to close without revealing.

### <a id="sessionid"></a>sessionId

```typescript
sessionId: string
```
