Skip to content

Commit

Permalink
fix: minor updates (TS4.4)
Browse files Browse the repository at this point in the history
- redeclare, not override inherited class properties
  • Loading branch information
postspectacular committed Sep 14, 2021
1 parent 26d3b90 commit 7e91cc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/cache/src/tlru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export interface TLRUCacheEntry<K, V> extends CacheEntry<K, V> {
* arg). If no instance TTL is given, TTL defaults to 1 hour.
*/
export class TLRUCache<K, V> extends LRUCache<K, V> {
protected opts!: TLRUCacheOpts<K, V>;
protected map!: Map<K, ConsCell<TLRUCacheEntry<K, V>>>;
protected items!: DCons<TLRUCacheEntry<K, V>>;
protected declare opts: TLRUCacheOpts<K, V>;
protected declare map: Map<K, ConsCell<TLRUCacheEntry<K, V>>>;
protected declare items: DCons<TLRUCacheEntry<K, V>>;

constructor(
pairs?: Iterable<[K, V]> | null,
Expand Down
2 changes: 1 addition & 1 deletion packages/rdom-canvas/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class $Canvas
extends Component
implements IMountWithState<any[] | IToHiccup>
{
el?: HTMLCanvasElement;
declare el?: HTMLCanvasElement;
ctx?: CanvasRenderingContext2D;
inner?: IComponent<any>;
size: ISubscription<any, number[]>;
Expand Down

0 comments on commit 7e91cc2

Please sign in to comment.