Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: fix some minor linter warnings #95

Merged
merged 3 commits into from
Aug 15, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: avoid unknown for constrained type
  • Loading branch information
castarco committed Aug 15, 2022
commit 396d37764d2f2e3af8fcf3e0fb7e289c1519562b
4 changes: 2 additions & 2 deletions packages/development-repl/repl.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from "node:fs";
import * as readline from "node:readline";
import * as util from "node:util";
import { create, insert, search, SearchParams } from "@nearform/lyra";
import { create, insert, search, PropertiesSchema, SearchParams } from "@nearform/lyra";
import yargs from "yargs";
import progress from "cli-progress";

Expand Down Expand Up @@ -97,7 +97,7 @@ rl.on("line", async (cmd: string) => {
offset: parsed.offset ?? 0,
exact: parsed.exact,
tolerance: parsed.tolerance ?? 0,
} as SearchParams<unknown>);
} as SearchParams<PropertiesSchema>);

log(searchResult);
});