Skip to content

Commit

Permalink
Move canonical types to interfaces.ts and export them all
Browse files Browse the repository at this point in the history
  • Loading branch information
victorquinn committed May 31, 2024
1 parent 0289023 commit ecd86d0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/weatherPlus.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import WeatherPlus from '../index';
import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
import { IWeatherData } from '../types';
import { IWeatherData } from '../interfaces';

jest.mock('redis', () => {
const mGet = jest.fn();
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ class WeatherPlus {
}
}

export * from './interfaces';
export { WeatherPlus };
export default WeatherPlus;
File renamed without changes.
2 changes: 1 addition & 1 deletion src/providers/nws/client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';
import debug from 'debug';
import { IWeatherData } from '../../types';
import { IWeatherData } from '../../interfaces';
import { IGridpointsStations, IPointsLatLngResponse, IObservationsLatest } from './interfaces';


Expand Down

0 comments on commit ecd86d0

Please sign in to comment.