Skip to content

Commit

Permalink
Update breakUpAriaJSON script to include MapOfRoleDefinitions type on…
Browse files Browse the repository at this point in the history
… roll-up role classes
  • Loading branch information
jessebeach committed Nov 26, 2019
1 parent c3049e7 commit b90a99b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/breakUpAriaJSON.js
Expand Up @@ -296,7 +296,7 @@ fs.readFile(path.join('scripts/roles.json'), {
+ ' */\n'
+ `${requiresMapper(requires[0], path.join(requires[2]), 0)}\n`
+ `\n`
+ `const ${requires[1]} = new Map([\n`
+ `const ${requires[1]}: MapOfRoleDefinitions = new Map([\n`
+ `${requiresCombiner(requires[0], 1)}\n`
+ `]);\n`
+ `\n`
Expand Down
2 changes: 1 addition & 1 deletion src/etc/roles/ariaAbstractRoles.js
Expand Up @@ -29,4 +29,4 @@ const ariaAbstractRoles: MapOfRoleDefinitions = new Map([
['window', windowRole]
]);

export default ariaAbstractRoles;
export default ariaAbstractRoles;
2 changes: 1 addition & 1 deletion src/etc/roles/ariaDpubRoles.js
Expand Up @@ -83,4 +83,4 @@ const ariaDpubRoles: MapOfRoleDefinitions = new Map([
['doc-toc', docTocRole]
]);

export default ariaDpubRoles;
export default ariaDpubRoles;
2 changes: 1 addition & 1 deletion src/etc/roles/ariaLiteralRoles.js
Expand Up @@ -143,4 +143,4 @@ const ariaLiteralRoles: MapOfRoleDefinitions = new Map([
['treeitem', treeitemRole]
]);

export default ariaLiteralRoles;
export default ariaLiteralRoles;

0 comments on commit b90a99b

Please sign in to comment.