[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Type](https://evolu.dev/docs/api-reference/common/Type) › id

```ts
function id<Table>(table: ValidateTableName<Table>): TableId<Table>;
```

Defined in: [packages/common/src/Type.ts:6047](https://github.com/evoluhq/evolu/blob/f0109fb501a593010e858e39248dde1200eeb2d7/packages/common/src/Type.ts#L6047)

Table-specific [Id](https://evolu.dev/docs/api-reference/common/Type/variables/Id) Type.

### Example

```ts
import {
  assertType,
  createIdFromString,
  id,
  type Brand,
  type Id,
} from "@evolu/common";

const TodoId = id("Todo");
const todoId = TodoId.orThrow(createIdFromString("todo"));

assertType<Id & Brand<"Todo">, typeof todoId>();
```