refactor: move ids into dedicated folder
This commit is contained in:
parent
374896caca
commit
8724e04860
8 changed files with 6 additions and 7 deletions
2
src/utils/id/index.ts
Normal file
2
src/utils/id/index.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export * from './ImdbId';
|
||||
export * from './TmdbId';
|
||||
|
|
@ -1,9 +1,8 @@
|
|||
export * from './env';
|
||||
export * from './Fetcher';
|
||||
export * from './StreamResolver';
|
||||
export * from './embed';
|
||||
export * from './ImdbId';
|
||||
export * from './env';
|
||||
export * from './id';
|
||||
export * from './language';
|
||||
export * from './manifest';
|
||||
export * from './tmdb';
|
||||
export * from './TmdbId';
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
import { getImdbIdFromTmdbId, getTmdbIdFromImdbId } from './tmdb';
|
||||
import { Fetcher } from './Fetcher';
|
||||
import { Context } from '../types';
|
||||
import { ImdbId } from './ImdbId';
|
||||
import { TmdbId } from './TmdbId';
|
||||
import { ImdbId, TmdbId } from './id';
|
||||
jest.mock('../utils/Fetcher');
|
||||
|
||||
// @ts-expect-error No constructor args needed
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import { ImdbId } from './ImdbId';
|
||||
import { TmdbId } from './TmdbId';
|
||||
import { ImdbId, TmdbId } from './id';
|
||||
import { Context } from '../types';
|
||||
import { Fetcher } from './Fetcher';
|
||||
import { envGet } from './env';
|
||||
|
|
|
|||
Loading…
Reference in a new issue