-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from vim-denops/unknownutil-v4
📦 Update unknownutil to v4
- Loading branch information
Showing
4 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import type { Denops } from "jsr:@denops/[email protected]"; | ||
import { assert, ensure, is } from "jsr:@core/unknownutil@3.18.0"; | ||
import { as, assert, ensure, is } from "jsr:@core/unknownutil@^4.0.0"; | ||
import { Client, Session } from "jsr:@lambdalisue/[email protected]"; | ||
import { errorDeserializer, errorSerializer } from "./error.ts"; | ||
|
||
|
@@ -70,17 +70,17 @@ function invoke( | |
} | ||
} | ||
|
||
const isRedrawArgs = is.TupleOf([is.OptionalOf(is.Boolean)] as const); | ||
const isRedrawArgs = is.TupleOf([as.Optional(is.Boolean)] as const); | ||
|
||
const isCallArgs = (v: unknown): v is [string, ...unknown[]] => { | ||
return is.Array(v) && is.String(v[0]); | ||
}; | ||
|
||
const isBatchArgs = is.ArrayOf(isCallArgs); | ||
|
||
const isCmdArgs = is.TupleOf([is.String, is.OptionalOf(is.Record)] as const); | ||
const isCmdArgs = is.TupleOf([is.String, as.Optional(is.Record)] as const); | ||
|
||
const isEvalArgs = is.TupleOf([is.String, is.OptionalOf(is.Record)] as const); | ||
const isEvalArgs = is.TupleOf([is.String, as.Optional(is.Record)] as const); | ||
|
||
const isDispatchArgs = (v: unknown): v is [string, string, ...unknown[]] => { | ||
return is.Array(v) && is.String(v[0]) && is.String(v[1]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { mergeReadableStreams } from "jsr:@std/[email protected]/merge-readable-streams"; | ||
import { is } from "jsr:@core/unknownutil@3.18.0"; | ||
import { is } from "jsr:@core/unknownutil@^4.0.0"; | ||
import { unreachable } from "jsr:@lambdalisue/[email protected]"; | ||
import { type Config, getConfig } from "./conf.ts"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { deadline } from "jsr:@std/[email protected]/deadline"; | ||
import { assert, is } from "jsr:@core/unknownutil@3.18.0"; | ||
import { assert, is } from "jsr:@core/unknownutil@^4.0.0"; | ||
import { Client, Session } from "jsr:@lambdalisue/[email protected]"; | ||
import type { Denops, Meta } from "jsr:@denops/[email protected]"; | ||
import { getConfig } from "./conf.ts"; | ||
|