/ src / api / types.ts
types.ts
 1  import { type Describe, number, string, type } from 'superstruct';
 2  
 3  export interface Channel {
 4  	id: number;
 5  	title: string;
 6  	permalink: string;
 7  }
 8  
 9  export const Channel: Describe<Channel> = type({
10  	id: number(),
11  	title: string(),
12  	permalink: string(),
13  });