fix(build): migrate smart config setup and align TypeScript compatibility updates
This commit is contained in:
@@ -29,7 +29,7 @@ export class SioIcon extends DeesElement {
|
||||
`;
|
||||
|
||||
@property({ type: String })
|
||||
public accessor icon: string;
|
||||
public accessor icon: string = '';
|
||||
|
||||
@property({ type: Number })
|
||||
public accessor size: number = 24;
|
||||
@@ -140,7 +140,7 @@ export class SioIcon extends DeesElement {
|
||||
|
||||
// Limit cache size
|
||||
if (SioIcon.iconCache.size > SioIcon.MAX_CACHE_SIZE) {
|
||||
const firstKey = SioIcon.iconCache.keys().next().value;
|
||||
const firstKey = SioIcon.iconCache.keys().next().value!;
|
||||
SioIcon.iconCache.delete(firstKey);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user