Type vs Interface
Type
type Nullish = null | undefined;
type Fruit = 'apple' | 'pear' | 'orange';
type Num = number | bigint;
type row = [colOne: number, colTwo: string];Interface
Last updated
type Nullish = null | undefined;
type Fruit = 'apple' | 'pear' | 'orange';
type Num = number | bigint;
type row = [colOne: number, colTwo: string];Last updated