index.d.ts
 1  declare namespace PostgresInterval {
 2    export interface IPostgresInterval {
 3      years?: number;
 4      months?: number;
 5      days?: number;
 6      hours?: number;
 7      minutes?: number;
 8      seconds?: number;
 9      milliseconds?: number;
10  
11      toPostgres(): string;
12  
13      toISO(): string;
14      toISOString(): string;
15    }
16  }
17  
18  declare function PostgresInterval(raw: string): PostgresInterval.IPostgresInterval;
19  
20  export = PostgresInterval;