Skip to content

Commit

Permalink
feat: use @optolith/helpers package
Browse files Browse the repository at this point in the history
  • Loading branch information
elyukai committed Oct 6, 2024
1 parent aeea73b commit bfbb107
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 13 deletions.
12 changes: 12 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"author": "Lukas Obermann",
"license": "MPL-2.0",
"dependencies": {
"@optolith/helpers": "^0.2.1",
"typescript": "^5.2.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/parser/resolvetypeargs.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { isNotNullish } from "@optolith/helpers/nullable"
import { assertExhaustive } from "@optolith/helpers/typeSafety"
import {
ContentNode,
EnumerationNode,
Expand All @@ -10,8 +12,6 @@ import {
TypeDefinitionNode,
isExportAssignmentNode,
} from "../ast.js"
import { assertExhaustive } from "../utils/assertExhaustive.js"
import { isNotNullish } from "../utils/nullable.js"

enum ScopeTypeKind {
Default,
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/jsonSchema.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { assertExhaustive } from "@optolith/helpers/typeSafety"
import { EOL } from "node:os"
import { sep } from "node:path"
import {
Expand All @@ -12,7 +13,6 @@ import {
isReferenceNode,
} from "../ast.js"
import { AstTransformer, Renderer } from "../main.js"
import { assertExhaustive } from "../utils/assertExhaustive.js"
import {
getAliasedImportName,
getFullyQualifiedNameAsPath,
Expand Down
4 changes: 2 additions & 2 deletions src/renderers/markdown.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { isNotNullish } from "@optolith/helpers/nullable"
import { assertExhaustive } from "@optolith/helpers/typeSafety"
import { EOL } from "node:os"
import {
ArrayNode,
Expand All @@ -20,8 +22,6 @@ import {
isTokenNode,
} from "../ast.js"
import { AstTransformer, Renderer } from "../main.js"
import { assertExhaustive } from "../utils/assertExhaustive.js"
import { isNotNullish } from "../utils/nullable.js"
import {
getRightmostQualifiedNameSegment,
qualifiedNameToArray,
Expand Down
6 changes: 0 additions & 6 deletions src/utils/assertExhaustive.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/utils/nullable.ts

This file was deleted.

0 comments on commit bfbb107

Please sign in to comment.