Skip to content

Commit

Permalink
Fix typescript imports (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjkb authored Apr 6, 2024
1 parent 0d6845b commit 892a1c0
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-tigers-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"prisma-extension-bark": patch
---

Fix typescript import that prevented extension methods to be exposed. ([Issue #78](https://github.com/adamjkb/bark/issues/78))
2 changes: 1 addition & 1 deletion packages/prisma-extension-bark/types/create.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { XOR } from "./helpers";
import type { XOR } from "./helpers.d.ts";
import {
PrismaModelFunctionArgs as PMFArgs,
PrismaModelProps as PMP,
Expand Down
4 changes: 2 additions & 2 deletions packages/prisma-extension-bark/types/delete.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { XOR } from "./helpers";
import { XOR } from "./helpers.d.ts";
import type { Prisma } from '@prisma/client'
import { RequiredKeysInInputNode } from "./prisma";
import { RequiredKeysInInputNode } from "./prisma.d.ts";


// deleteNode
Expand Down
4 changes: 2 additions & 2 deletions packages/prisma-extension-bark/types/find.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { XOR } from "./helpers";
import { RequiredKeysInInputNode } from "./prisma";
import type { XOR } from "./helpers.d.ts";
import { RequiredKeysInInputNode } from "./prisma.d.ts";

import type { Prisma } from '@prisma/client'

Expand Down
14 changes: 7 additions & 7 deletions packages/prisma-extension-bark/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import PrismaDefault, { type Prisma } from "@prisma/client/scripts/default-index";
import type { Types } from "@prisma/client/runtime/library";
import { PrismaModelProps } from "./prisma";
import { findAncestorsArgs, findChildrenArgs, findChildrenResult, findDescendantsArgs, findDescendantsResult, findLastRootNodeArgs, findLastRootNodeResult, findParentArgs, findParentResult, findSiblingsArgs, findSiblingsResult, findTreeArgs, findTreeResult } from "./find";
import { createChildArgs, createRootArgs, createSiblingArgs, createSiblingResult } from "./create";
import { deleteManyNodesArgs, deleteManyNodesResult, deleteNodeArgs, deleteNodeResult } from "./delete";
import { moveArgs, moveResult } from "./operations";
import PrismaDefault, { type Prisma } from "@prisma/client/scripts/default-index.d.ts";
import type { Types } from "@prisma/client/runtime/library.d.ts";
import { PrismaModelProps } from "./prisma.d.ts";
import { findAncestorsArgs, findChildrenArgs, findChildrenResult, findDescendantsArgs, findDescendantsResult, findLastRootNodeArgs, findLastRootNodeResult, findParentArgs, findParentResult, findSiblingsArgs, findSiblingsResult, findTreeArgs, findTreeResult } from "./find.d.ts";
import { createChildArgs, createRootArgs, createSiblingArgs, createSiblingResult } from "./create.d.ts";
import { deleteManyNodesArgs, deleteManyNodesResult, deleteNodeArgs, deleteNodeResult } from "./delete.d.ts";
import { moveArgs, moveResult } from "./operations.d.ts";

type BarkInitArgs = {
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/prisma-extension-bark/types/operations.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { XOR } from "./helpers";
import type { XOR } from "./helpers.d.ts";
import type { Prisma } from '@prisma/client'
import { RequiredKeysInInputNode } from "./prisma";
import { RequiredKeysInInputNode } from "./prisma.d.ts";


// move
Expand Down
2 changes: 1 addition & 1 deletion packages/prisma-extension-bark/types/prisma.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Prisma, PrismaClient } from "@prisma/client"
import { RequireKeys } from "./helpers";
import { RequireKeys } from "./helpers.d.ts";

/**
* Model methods available in Prisma. (e.g. `prisma.node` or `prisma.user`)
Expand Down

0 comments on commit 892a1c0

Please sign in to comment.