Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Sep 2, 2018
1 parent b71aeda commit b71942b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/data/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export declare namespace Resource {
type: Price.Type;
frequency: Price.Frequency;
}
type Type = 'game' | 'playground' | 'video' | 'practice-platform' | 'tutorial' | 'bootcamp';
type Type = 'game' | 'playground' | 'video' | 'practice-platform' | 'tutorial' | 'bootcamp' | 'course';
type Platform = 'ios' | 'android' | 'web' | 'windows' | 'os x' | 'linux';
interface Category<ID extends string = string> {
id: ID;
Expand Down
2 changes: 1 addition & 1 deletion src/data/sites/bootcamps/node-school.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const r: Resource = {
name: 'Node School',
platforms: ['web'],
price: 0,
type: 'learning-platform',
type: 'tutorial',
url: 'https://nodeschool.io/',
};

Expand Down
2 changes: 1 addition & 1 deletion src/data/sites/bootcamps/odin-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const r: Resource = {
name: 'The Odin Project',
platforms: ['web'],
price: 0,
type: 'learning-platform',
type: 'bootcamp',
url: 'https://www.theodinproject.com/',
};

Expand Down
2 changes: 1 addition & 1 deletion src/data/sites/video-course/frontend-masters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ const NORMALIZED_DATA: Resource[] = SCRAPED_DATA.map(raw => {
url: 'https://frontendmasters.com',
},
platforms: ['web', 'ios', 'android'],
type: 'video-course',
type: ['video', 'course'],
categoryIds: detectCategories(raw),
};
return site;
Expand Down

0 comments on commit b71942b

Please sign in to comment.