Skip to content

Commit

Permalink
chore: add types
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Jan 13, 2022
1 parent ae4477c commit 3437ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ export class System {
* @method faker.system.fileExt
* @param mimeType
*/
fileExt(mimeType) {
fileExt(mimeType?: string): string {
const typeSet = new Set<string>();
const extensionSet = new Set();
const extensionSet = new Set<string>();
const mimeTypes = this.faker.definitions.system.mimeTypes;

Object.keys(mimeTypes).forEach((m) => {
Expand Down

0 comments on commit 3437ea6

Please sign in to comment.