Skip to content

Commit

Permalink
Add missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeLonewolf committed May 15, 2024
1 parent 7488b82 commit 5876913
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion shieldlib/src/shield.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function getShieldDef(shields: ShieldDefinitions, routeDef: RouteDefinition): Sh
return null;
}

var shieldDef = shields[routeDef.network];
let shieldDef: ShieldDefinition = shields[routeDef.network];

if (routeDef == null) {
return null;
Expand Down
6 changes: 6 additions & 0 deletions shieldlib/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ export interface ShieldDefinitionBase {
colorLighten: string;
/** Perform a color darken operation with this color */
colorDarken: string;
/** Provide a different shield style for specific name values */
overrideByName: Map<string, ShieldDefinition>
/** Provide a different shield style for specific ref values */
overrideByRef: Map<string, ShieldDefinition>
/** Provide a different shield style when there's no ref value */
noref: ShieldDefinition
}

/**
Expand Down

0 comments on commit 5876913

Please sign in to comment.