create release type enum

This commit is contained in:
Blake Joynes
2021-06-15 22:24:16 -04:00
parent b0e7776e50
commit 00dc58cd7d
2 changed files with 10 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "tmdb-ts",
"version": "0.0.9",
"version": "0.0.10",
"description": "TMDB v3 library wrapper",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -28,12 +28,20 @@ export interface MovieDetails {
vote_count: number;
}
export enum ReleaseDateType {
'Premiere' = 1,
'Theatrical (limited)',
'Theatrical',
'Digital',
'Physical',
'TV'
}
export interface ReleaseDate {
certification: string;
iso_639_1: string;
release_date: Date;
type: number;
type: ReleaseDateType;
note: string;
}