# CognitiveServicesResourceTypeProxy

- Module: [Aspire.Hosting.Azure.Provisioning.CognitiveServices](/reference/api/typescript/aspire.hosting.azure.provisioning.cognitiveservices.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)

Represents the ResourceType Azure Provisioning model.

## Definition

```typescript
interface CognitiveServicesResourceTypeProxy {
  readonly namespace: string;
  readonly type: string;
  compareTo(other: CognitiveServicesResourceTypeProxy): number;
  getLastType(): string;
}
```

## Properties

- `namespace`: `string` `get` -- Gets the Namespace provisioning property.
- `type`: `string` `get` -- Gets the Type provisioning property.

## Methods

- [compareTo](/reference/api/typescript/aspire.hosting.azure.provisioning.cognitiveservices/cognitiveservicesresourcetypeproxy/compareto.md) -- `method` -- Invokes CompareTo on the ResourceType provisioning model.
    ```typescript
  compareTo(other: CognitiveServicesResourceTypeProxy): number
  ```
- [getLastType](/reference/api/typescript/aspire.hosting.azure.provisioning.cognitiveservices/cognitiveservicesresourcetypeproxy/getlasttype.md) -- `method` -- Invokes GetLastType on the ResourceType provisioning model.
    ```typescript
  getLastType(): string
  ```
