Type Declarations

Verze:

31. 12. 2025

Zodpovědná osoba:

Dominik Šlechta

Interface and type alias names MUST be written in PascalCase. Interface names MUST NOT be prefixed with I.

Interface names MUST be written in PascalCase.

Interface names MUST NOT be prefixed with I.

Type alias names MUST be written in PascalCase.

Example (Correct):

interface Product {
    id: number
    name: string
    price: number
}

type ProductId = number
type OrderStatus = 'pending' | 'processing' | 'completed'

Example (Incorrect):

interface IProduct {}
interface productInterface {}