Skip to content

Commit d443c8a

Browse files
authored
Merge pull request #186 from takker99:fix-types
fix(deno-udd): Deal with Breaking Changes in `@core/unknownutil`
2 parents eda8a61 + 0dd2e40 commit d443c8a

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

browser/dom/edit.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import { press } from "./press.ts";
33
import { getLineCount } from "./node.ts";
44
import { range } from "../../range.ts";
55
import { textInput } from "./dom.ts";
6-
import { isArray, isNumber, isString } from "@core/unknownutil";
6+
import { isArray } from "@core/unknownutil/is/array";
7+
import { isNumber } from "@core/unknownutil/is/number";
8+
import { isString } from "@core/unknownutil/is/string";
79
import { delay } from "@std/async/delay";
810

911
export const undo = (count = 1): void => {

browser/dom/node.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import { isNumber, isString, isUndefined } from "@core/unknownutil";
2-
import { ensure, isArray } from "@core/unknownutil";
1+
import { isArray } from "@core/unknownutil/is/array";
2+
import { isNumber } from "@core/unknownutil/is/number";
3+
import { isString } from "@core/unknownutil/is/string";
4+
import { ensure } from "@core/unknownutil/ensure";
5+
import { isUndefined } from "@core/unknownutil/is/undefined";
36
import { getCachedLines } from "./getCachedLines.ts";
47
import { takeInternalLines } from "./takeInternalLines.ts";
58
import type { BaseLine, Line } from "@cosense/types/userscript";

rest/parseHTTPError.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ import type {
99
SessionError,
1010
} from "@cosense/types/rest";
1111
import type { Maybe } from "option-t/maybe";
12-
import {
13-
isArrayOf,
14-
isLiteralOneOf,
15-
isRecord,
16-
isString,
17-
} from "@core/unknownutil";
12+
import { isArrayOf } from "@core/unknownutil/is/array-of";
13+
import { isLiteralOneOf } from "@core/unknownutil/is/literal-one-of";
14+
import { isRecord } from "@core/unknownutil/is/record";
15+
import { isString } from "@core/unknownutil/is/string";
16+
1817
import type { HTTPError } from "./responseIntoResult.ts";
1918

2019
export interface RESTfullAPIErrorMap {

text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isString } from "@core/unknownutil";
1+
import { isString } from "@core/unknownutil/is/string";
22

33
/** インデント数を数える */
44
export const getIndentCount = (text: string): number =>

0 commit comments

Comments
 (0)