Skip to content

Commit

Permalink
chore(schema-resume): update JSON Schema types reference
Browse files Browse the repository at this point in the history
Replaced the old "@ts-types" annotation with the updated syntax for @types/json-schema. Added @types/json-schema as a dev dependency in package.json and updated the deno.lock file accordingly.

Signed-off-by: suddenlyGiovanni <15946771+suddenlyGiovanni@users.noreply.github.com>
  • Loading branch information
suddenlyGiovanni committed Jan 27, 2025
1 parent bcf6c2a commit 5ad7833
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/schema-resume/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"effect": "3.12.7"
},
"devDependencies": {
"vitest": "3.0.4"
"vitest": "3.0.4",
"@types/json-schema": "7.0.15"
},
"exports": {
".": "./src/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/schema-resume/src/schema-primitive/email/email.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Schema } from 'effect'
// @ts-types="npm:@types/json-schema"
// @ts-types="@types/json-schema"
import type { JSONSchema7 } from 'json-schema'

import { omit } from '../trimmed-non-empty/index.ts'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ParseResult, Schema } from 'effect'
// @ts-types="npm:@types/json-schema"
// @ts-types="@types/json-schema"
import type { JSONSchema7 } from 'json-schema'

// biome-ignore lint/style/useNamingConvention: this case is correct
Expand Down
2 changes: 1 addition & 1 deletion packages/schema-resume/src/schema-primitive/phone/phone.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Schema } from 'effect'
// @ts-types="npm:@types/json-schema"
// @ts-types="@types/json-schema"
import type { JSONSchema7 } from 'json-schema'

import { omit } from '../trimmed-non-empty/index.ts'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Schema } from 'effect'
// @ts-types="npm:@types/json-schema"
// @ts-types="@types/json-schema"
import type { JSONSchema7 } from 'json-schema'

import { omit } from '../trimmed-non-empty/index.ts'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Schema } from 'effect'
// @ts-types="npm:@types/json-schema"
// @ts-types="@types/json-schema"
import type { JSONSchema7 } from 'json-schema'

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Schema } from 'effect'
// @ts-types="npm:@types/json-schema"
// @ts-types="@types/json-schema"
import type { JSONSchema7 } from 'json-schema'

import { omit } from '../trimmed-non-empty/index.ts'
Expand Down

0 comments on commit 5ad7833

Please sign in to comment.