diff --git a/packages/associative/src/hash-map.ts b/packages/associative/src/hash-map.ts index 03c6c9ae38..cc52d2d9cc 100644 --- a/packages/associative/src/hash-map.ts +++ b/packages/associative/src/hash-map.ts @@ -119,8 +119,8 @@ export class HashMap * readonly/immutable. This could be enforced via TS, but would * break ES6 Map interface contract. * - * @param fn - - * @param thisArg - + * @param fn - + * @param thisArg - */ forEach(fn: Fn3, void>, thisArg?: any) { for (let pair of __private.get(this)!.bins) { @@ -142,7 +142,7 @@ export class HashMap copy() { const $this = __private.get(this)!; const m = new HashMap(null, this.opts({ cap: 4 })); - Object.assign(__private.get(m), { + Object.assign(__private.get(m)!, { bins: $this.bins.slice(), mask: $this.mask, size: $this.size, diff --git a/packages/parse/src/xform/hoist.ts b/packages/parse/src/xform/hoist.ts index bbbb99c7ab..d078fccf5f 100644 --- a/packages/parse/src/xform/hoist.ts +++ b/packages/parse/src/xform/hoist.ts @@ -4,10 +4,10 @@ import { xform } from "../combinators/xform.js"; /** * Replace AST node with its first child node. Also see {@link hoist}. * - * @param scope - + * @param scope - */ export const xfHoist: ScopeTransform = (scope) => { - Object.assign(scope, scope!.children![0]); + Object.assign(scope!, scope!.children![0]); return scope; }; @@ -15,7 +15,7 @@ export const xfHoist: ScopeTransform = (scope) => { * Moves the result of first child node to this node, then discards all * children. Also see {@link hoistR}. * - * @param scope - + * @param scope - */ export const xfHoistResult: ScopeTransform = (scope) => { scope!.result = scope!.children![0].result; @@ -26,14 +26,14 @@ export const xfHoistResult: ScopeTransform = (scope) => { /** * Syntax sugar for `xform(parser, xfHoist)`. * - * @param parser - + * @param parser - */ export const hoist = (parser: Parser) => xform(parser, xfHoist); /** * Syntax sugar for `xform(parser, xfHoistR)`. * - * @param parser - + * @param parser - */ export const hoistResult = (parser: Parser) => xform(parser, xfHoistResult); diff --git a/packages/rstream/src/object.ts b/packages/rstream/src/object.ts index 45e5c4923c..49d31161e5 100644 --- a/packages/rstream/src/object.ts +++ b/packages/rstream/src/object.ts @@ -20,7 +20,7 @@ export interface StreamObj> { * Feeds new values from `x` to each registered key's stream. * Satifies {@link ISubscriber.next} interface. * - * @param x - + * @param x - */ next(x: T): void; /** @@ -126,8 +126,8 @@ export interface StreamObjOpts> extends CommonOpts { * // b foo * ``` * - * @param src - - * @param opts - + * @param src - + * @param opts - */ export const fromObject = >( src: T, @@ -146,7 +146,7 @@ export const fromObject = >( for (let k of keys) { streams[k] = subscription(undefined, { ..._opts, - id: `${id}-${k}`, + id: `${id}-${String(k)}`, }); } const res = >{ diff --git a/packages/system/src/system.ts b/packages/system/src/system.ts index 5b0d57fda9..cf670ccb45 100644 --- a/packages/system/src/system.ts +++ b/packages/system/src/system.ts @@ -37,7 +37,7 @@ export class System> implements ILifecycle { for (let id of this.topology) { const comp = this.components[id]; if (comp.start && !(await comp.start())) { - LOGGER.warn(`error starting component: ${id}`); + LOGGER.warn(`error starting component: ${String(id)}`); return false; } } @@ -59,7 +59,7 @@ export class System> implements ILifecycle { const id = topo[i]; const comp = this.components[id]; if (comp.stop && !(await comp.stop())) { - LOGGER.warn(`error stopping component: ${id}`); + LOGGER.warn(`error stopping component: ${String(id)}`); } } return true;