index.d.ts 422 B

123456789101112131415161718192021
  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. toPostgres(): string;
  11. toISO(): string;
  12. toISOString(): string;
  13. }
  14. }
  15. declare function PostgresInterval(raw: string): PostgresInterval.IPostgresInterval;
  16. export = PostgresInterval;