Skip to content

Commit

Permalink
add reference types from dwn-sdk-js to avoid pnpm build error (#507)
Browse files Browse the repository at this point in the history
* add reference types from dwn-sdk-js to avoid pnpm build error https://github.com/microsoft/TypeScript/issues/47663\#issuecomment-1962129199

* add changesets

* add comment and link to PR explaining why the refence type is there
  • Loading branch information
LiranCohen authored May 2, 2024
1 parent c040b25 commit d863c37
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/beige-tools-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@web5/api": patch
---

add reference types from dwn-sdk-js to avoid pnpm build error

https://github.com/microsoft/TypeScript/issues/47663#issuecomment-1962129199
6 changes: 6 additions & 0 deletions packages/api/src/protocol.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* NOTE: Added reference types here to avoid a `pnpm` bug during build.
* https://github.com/TBD54566975/web5-js/pull/507
*/
/// <reference types="@tbd54566975/dwn-sdk-js" />

import type { DwnMessage, DwnResponseStatus, Web5Agent } from '@web5/agent';

import { DwnInterface } from '@web5/agent';
Expand Down
6 changes: 6 additions & 0 deletions packages/api/src/record.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* NOTE: Added reference types here to avoid a `pnpm` bug during build.
* https://github.com/TBD54566975/web5-js/pull/507
*/
/// <reference types="@tbd54566975/dwn-sdk-js" />

import type { Readable } from '@web5/common';
import type {
Web5Agent,
Expand Down

0 comments on commit d863c37

Please sign in to comment.