1interface IClientRequestAndCoords extends IClientRequest, ICoords {}
2
3function(data: IClientRequestAndCoords)
4
5//OR
6
7interface ClientRequest {
8 userId: number
9 sessionKey: string
10}
11
12interface Coords {
13 lat: number
14 long: number
15}
16
17function log(data: ClientRequest & Coords) {
18 console.log(
19 data.userId,
20 data.sessionKey,
21 data.lat,
22 data.long
23 );
24}