Skip to content

Commit 3a15985

Browse files
fix: update @std/json and @std/testing import paths in json_compatible.ts to use JSR format
- Update import paths in code examples to use jsr:/@std/json@^1.0.1/types - Update import paths in code examples to use jsr:/@std/testing@^1.0.8/types
1 parent 8062f5e commit 3a15985

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rest/json_compatible.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export type { IsAny, JsonValue };
66
* Check if a property {@linkcode K} is optional in {@linkcode T}.
77
*
88
* ```ts
9-
* import type { Assert } from "@std/testing/types";
9+
* import type { Assert } from "jsr:/@std/testing@^1.0.8/types";
1010
*
1111
* type _1 = Assert<IsOptional<{ a?: number }, "a">, true>;
1212
* type _2 = Assert<IsOptional<{ a?: undefined }, "a">, true>;
@@ -26,8 +26,8 @@ export type IsOptional<T, K extends keyof T> =
2626
* A type that is compatible with JSON.
2727
*
2828
* ```ts
29-
* import type { JsonValue } from "@std/json/types";
30-
* import { assertType } from "@std/testing/types";
29+
* import type { JsonValue } from "jsr:/@std/json@^1.0.1/types";
30+
* import { assertType } from "jsr:/@std/testing@^1.0.8/types";
3131
*
3232
* type IsJsonCompatible<T> = [T] extends [JsonCompatible<T>] ? true : false;
3333
*

0 commit comments

Comments
 (0)