Appease the linter

This commit is contained in:
Travis Ralston 2020-01-28 12:53:37 +00:00
parent 21405b8f25
commit d0c28adfb1
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ class Skinner {
};
// Check the skin first
let comp = doLookup(this.components);
const comp = doLookup(this.components);
// Just return nothing instead of erroring - the consumer should be smart enough to
// handle this at this point.

View file

@ -32,7 +32,7 @@ import * as sdk from '../index';
* with a skinned version. If no skinned version is available, this component
* will be used.
*/
export function replaceableComponent<T extends{new(...args:any[])}>(name: string) {
export function replaceableComponent<T extends{new(...args: any[])}>(name: string) {
// Decorators return a function to override the class (origComponent). This
// ultimately assumes that `getComponent()` won't throw an error and instead
// return a falsey value like `null` when the skin doesn't have a component.