Skip to content

Commit

Permalink
Fixed set compiling license field
Browse files Browse the repository at this point in the history
  • Loading branch information
bennetfabian committed May 24, 2022
1 parent a858ae7 commit 1ea14be
Show file tree
Hide file tree
Showing 5 changed files with 2,727 additions and 19 deletions.
14 changes: 7 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ export default class IconJar {
/**
* @var array
*/
protected groups: Record<string, never>;
protected groups: {};
/**
* @var array
*/
protected sets: Record<string, never>;
protected sets: {};
/**
* @var array
*/
protected icons: Record<string, never>;
protected icons: {};
/**
* @var array
*/
protected licenses: Record<string, never>;
protected licenses: {};
/**
* @var undefined|string
*/
Expand Down Expand Up @@ -89,7 +89,7 @@ export default class IconJar {
* @return string
* @throws CreationException
*/
save(pathToSave: string): string;
save(pathToSave: any): string;
}
export declare class Icon {
static readonly TYPE_UNKNOWN = -1;
Expand Down Expand Up @@ -159,13 +159,13 @@ export declare class Icon {
* @param string fileOnDisk
* @param number type
*/
constructor(name: string, fileOnDisk: string, type?: number);
constructor(name: string, fileOnDisk: string, type: number);
/**
* @param file
*
* @return number
*/
static getType(file: string): 1 | -1 | 0 | 2 | 3 | 4 | 5 | 6;
static getType(file: any): 1 | -1 | 0 | 2 | 3 | 4 | 5 | 6;
/**
* @param string tag
*
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class IconJar {
dict['parent'] = set.group.identifier;
}
if (set.license instanceof License) {
dict['license'] = this.compileLicense(set.license);
dict['licence'] = this.compileLicense(set.license);
}
this.sets[set.identifier] = dict;
set.icons.forEach((icon) => {
Expand Down
Loading

0 comments on commit 1ea14be

Please sign in to comment.