Skip to content

Commit

Permalink
chore: 🤖 fix all build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Nov 25, 2024
1 parent 932375b commit d0b09de
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"noExplicitAny": "off",
"useIsArray": "off",
"noAssignInExpressions": "off",
"noConfusingLabels": "off"
"noConfusingLabels": "off",
"noConfusingVoidType": "off"
},
"complexity": {
"noStaticOnlyClass": "off",
Expand Down
4 changes: 2 additions & 2 deletions src/json-crdt-extensions/peritext/block/Inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export type InlineAttr =
| InlineAttrEndPoint;
export type InlineAttrStack = InlineAttr[];

export type InlineAttrs = Map<string | number, InlineAttrStack>;
export type InlineAttrs = Record<string | number, InlineAttrStack>;

/**
* The `Inline` class represents a range of inline text within a block, which
Expand Down Expand Up @@ -229,7 +229,7 @@ export class Inline extends Range implements Printable {
const txt = this.txt;
const overlay = txt.overlay;
let cnt = 0;
overlay.chunkSlices0(this.start.chunk(), this.start, this.end, (chunk, off, len): boolean | undefined => {
overlay.chunkSlices0(this.start.chunk(), this.start, this.end, (chunk, off, len): boolean | void => {
if (overlay.isMarker(chunk.id)) return;
cnt++;
texts.push(new ChunkSlice(chunk, off, len));
Expand Down
4 changes: 2 additions & 2 deletions src/json-crdt-extensions/peritext/overlay/Overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class Overlay<T = string> implements Printable, Stateful {
chunk: Chunk<T> | undefined,
p1: Point<T>,
p2: Point<T>,
callback: (chunk: Chunk<T>, off: number, len: number) => boolean | undefined,
callback: (chunk: Chunk<T>, off: number, len: number) => boolean | void,
): Chunk<T> | undefined {
const rga = this.txt.str;
const strId = rga.id;
Expand All @@ -178,7 +178,7 @@ export class Overlay<T = string> implements Printable, Stateful {
const time1 = id1.time;
const sid2 = id2.sid;
const time2 = id2.time;
return rga.range0(undefined, id1, id2, (chunk: Chunk<T>, off: number, len: number): boolean | undefined => {
return rga.range0(undefined, id1, id2, (chunk: Chunk<T>, off: number, len: number): boolean | void => {
if (checkFirstAnchor) {
checkFirstAnchor = false;
const chunkId = chunk.id;
Expand Down
4 changes: 2 additions & 2 deletions src/json-crdt/nodes/rga/AbstractRga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ export abstract class AbstractRga<T> {
startChunk: Chunk<T> | undefined,
from: ITimestampStruct,
to: ITimestampStruct,
callback: (chunk: Chunk<T>, off: number, len: number) => boolean | undefined,
): Chunk<T> | undefined {
callback: (chunk: Chunk<T>, off: number, len: number) => boolean | void,
): Chunk<T> | void {
let chunk: Chunk<T> | undefined = startChunk ? startChunk : this.findById(from);
if (startChunk) while (chunk && !containsId(chunk.id, chunk.span, from)) chunk = next(chunk);
if (!chunk) return;
Expand Down
3 changes: 0 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": "./node_modules/config-galore/tsconfig.json",
"compilerOptions": {
"noImplicitReturns": false
},
"include": ["src"],
"exclude": ["node_modules", "lib", "es6", "es2020", "esm", "docs", "README.md"],
"typedocOptions": {
Expand Down

0 comments on commit d0b09de

Please sign in to comment.