Skip to content

Commit

Permalink
fix: bump typescript from 5.4.5 to 5.5.2 (#2850)
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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Jun 25, 2024
1 parent 00c5712 commit 17b0b99
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 189 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
15 changes: 0 additions & 15 deletions packages/library-legacy/scripts/typegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,5 @@ pnpm tsc -p tsconfig.d.json -d
# Flatten typescript declarations
pnpm rollup -c rollup.config.types.mjs

# Replace export with closing brace for module declaration
sed -i.bak '$s/export {.*};/}/' lib/index.d.ts

# Replace declare's with export's
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

# 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 17b0b99

Please sign in to comment.