# describeTable

### Spec

```typescript
async deleteTable(): Promise<DeleteTableOutput>
```

Get table information corresponding `TynamoTable` .&#x20;

### Output

| Name              | Type                                                                                                                      | Information                             |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| TableDescription? | [AWS.DynamoDB.TableDescription](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TableDescription.html) | Represents the properties of the table. |

### Example

```typescript
@DynamoEntity({
    TableName: "MyCatTable",
    BillingMode: "PAY_PER_REQUEST"
})
class Cat {
    @DynamoProperty({ keyType: KeyType.hash })
    id!: number;

    @DynamoProperty({ keyType: KeyType.attr })
    name!: string;

    @DynamoProperty({ keyType: KeyType.attr, dataType: DataType.NS })
    favoriteNumbers!: number[];

    constructor(id: number, name: string, favoriteNumbers: number[]) {
        this.id = id;
        this.name = name;
        this.favoriteNumbers = favoriteNumbers;
    }
}

const tynamo: Tynamo = new Tynamo({
    region: "ap-northeast-2",
    endpoint: "http://localhost:8000"
});

const tynamoTable: TynamoTable<Cat> = tynamo.getTableOf(Cat);
await tynamoTable.describeTable();
```
