Skip to content

Commit

Permalink
fix: bump typescript from 5.4.5 to 5.5.2
Browse files Browse the repository at this point in the history
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.4.5 to 5.5.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.4.5...v5.5.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and steveluscher committed Jun 25, 2024
1 parent 00c5712 commit 086b1d9
Show file tree
Hide file tree
Showing 5 changed files with 175 additions and 178 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"ts-node": "^10.9.2",
"tsup": "^8.1.0",
"turbo": "^2.0.5",
"typescript": "^5.4.5"
"typescript": "^5.5.2"
},
"engineStrict": true,
"engines": {
Expand Down
5 changes: 1 addition & 4 deletions packages/library-legacy/scripts/typegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ sed -i.bak '$s/export {.*};/}/' lib/index.d.ts
sed -i.bak 's/declare/export/g' lib/index.d.ts

# Prepend declare module line
sed -i.bak '2s;^;declare module "@solana/web3.js" {\n;' lib/index.d.ts
sed -i.bak '2s;^;declare module '\''@solana/web3.js'\'' {\n;' lib/index.d.ts

# Remove backup file from `sed` above
rm lib/index.d.ts.bak

# Run prettier
pnpm prettier --write lib/index.d.ts

# Check result
pnpm tsc --types ./test/__shadow-jest-types.d.ts lib/index.d.ts
6 changes: 3 additions & 3 deletions packages/library-legacy/src/__forks__/browser/fetch-impl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const Headers = globalThis.Headers;
export const Request = globalThis.Request;
export const Response = globalThis.Response;
export const Headers: typeof globalThis.Headers = globalThis.Headers;
export const Request: typeof globalThis.Request = globalThis.Request;
export const Response: typeof globalThis.Response = globalThis.Response;
export default globalThis.fetch;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const Headers = globalThis.Headers;
export const Request = globalThis.Request;
export const Response = globalThis.Response;
export const Headers: typeof globalThis.Headers = globalThis.Headers;
export const Request: typeof globalThis.Request = globalThis.Request;
export const Response: typeof globalThis.Response = globalThis.Response;
export default globalThis.fetch;
Loading

0 comments on commit 086b1d9

Please sign in to comment.