# getPropRefSourceAlias

```ts
function getPropRefSourceAlias(ref): string | undefined;
```

Defined in: [packages/db/src/query/ir.ts:225](https://github.com/TanStack/db/blob/main/packages/db/src/query/ir.ts#L225)

Returns an explicitly declared source alias without inferring from the path.

## Parameters

### ref

[`PropRef`](../classes/PropRef.md)

## Returns

`string` \| `undefined`
