-
-
Notifications
You must be signed in to change notification settings - Fork 35
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 #393 from vim-denops/unknownutil-v4
📦 Update unknownutil to v4
- Loading branch information
Showing
10 changed files
with
77 additions
and
49 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
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
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
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,9 +1,12 @@ | ||
import type { Meta } from "jsr:@denops/core@^7.0.0"; | ||
import { is, type Predicate } from "jsr:@core/unknownutil@^3.18.1"; | ||
import type { Predicate } from "jsr:@core/unknownutil@^4.0.0/type"; | ||
import { isLiteralOneOf } from "jsr:@core/unknownutil@^4.0.0/is/literal-one-of"; | ||
import { isObjectOf } from "jsr:@core/unknownutil@^4.0.0/is/object-of"; | ||
import { isString } from "jsr:@core/unknownutil@^4.0.0/is/string"; | ||
|
||
export const isMeta: Predicate<Meta> = is.ObjectOf({ | ||
mode: is.LiteralOneOf(["release", "debug", "test"] as const), | ||
host: is.LiteralOneOf(["vim", "nvim"] as const), | ||
version: is.String, | ||
platform: is.LiteralOneOf(["windows", "mac", "linux"] as const), | ||
export const isMeta: Predicate<Meta> = isObjectOf({ | ||
mode: isLiteralOneOf(["release", "debug", "test"] as const), | ||
host: isLiteralOneOf(["vim", "nvim"] as const), | ||
version: isString, | ||
platform: isLiteralOneOf(["windows", "mac", "linux"] as const), | ||
}); |
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