Skip to content

Commit 8d91e55

Browse files
authored
Add missing lang for JSDoc code examples (#2851)
1 parent aa0b8c4 commit 8d91e55

File tree

13 files changed

+22
-22
lines changed

13 files changed

+22
-22
lines changed

packages/thirdweb/src/extensions/erc1271/checkContractWalletSignature.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const MAGIC_VALUE = "0x1626ba7e";
1818
* @param options.signature - The signature to check.
1919
* @extension ERC1271
2020
* @example
21-
* ```
21+
* ```ts
2222
* import { checkContractWalletSignature } from "thirdweb/extensions/erc1271";
2323
* const isValid = await checkContractWalletSignature({
2424
* contract: myContract,

packages/thirdweb/src/extensions/erc4337/account/addAdmin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type AddAdminOptions = {
1919
* @param options - The options for the addAdmin function.
2020
* @returns The transaction object to be sent.
2121
* @example
22-
* ```
22+
* ```ts
2323
* import { addAdmin } from 'thirdweb/extensions/erc4337';
2424
*
2525
* const transaction = addAdmin({

packages/thirdweb/src/extensions/erc4337/account/addSessionKey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export type AddSessionKeyOptions = {
2424
* @param options - The options for the removeSessionKey function.
2525
* @returns The transaction object to be sent.
2626
* @example
27-
* ```
27+
* ```ts
2828
* import { addSessionKey } from 'thirdweb/extensions/erc4337';
2929
*
3030
* const transaction = addSessionKey({

packages/thirdweb/src/extensions/erc4337/account/removeAdmin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type RemoveAdminOptions = {
1919
* @param options - The options for the removeAdmin function.
2020
* @returns The transaction object to be sent.
2121
* @example
22-
* ```
22+
* ```ts
2323
* import { removeAdmin } from 'thirdweb/extensions/erc4337';
2424
*
2525
* const transaction = removeAdmin({

packages/thirdweb/src/extensions/erc4337/account/removeSessionKey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type RemoveSessionKeyOptions = {
1919
* @param options - The options for the removeSessionKey function.
2020
* @returns The transaction object to be sent.
2121
* @example
22-
* ```
22+
* ```ts
2323
* import { removeSessionKey } from 'thirdweb/extensions/erc4337';
2424
*
2525
* const transaction = removeSessionKey({

packages/thirdweb/src/extensions/farcaster/ed25519.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type Ed25519Keypair = {
1111
* Generates an Ed25519 keypair to be used as an account signer.
1212
* @returns A promise resolving to the generated keypair.
1313
* @example
14-
* ```
14+
* ```ts
1515
* createSigner()
1616
* ```
1717
* @extension FARCASTER

packages/thirdweb/src/extensions/farcaster/eip712Signatures/keyRequestSignature.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export type SignKeyRequestOptions = {
6969
* @returns An object containing the domain, types, primary type, and the message for EIP-712 signing.
7070
* @extension FARCASTER
7171
* @example
72-
* ```
72+
* ```ts
7373
* const message = {
7474
* requestFid: 123456789n,
7575
* key: "0x04bfc...",
@@ -93,7 +93,7 @@ export function getKeyRequestData(message: SignedKeyRequestMessage) {
9393
* @returns A promise that resolves to the signature of the key request.
9494
* @extension FARCASTER
9595
* @example
96-
* ```
96+
* ```ts
9797
* const message = {
9898
* requestFid: 123456789n,
9999
* key: "0x04bfc...",
@@ -134,7 +134,7 @@ export type SignedKeyRequestMetadataOptions = Prettify<
134134
* @returns The encoded ABI parameters as a hexadecimal string.
135135
* @extension FARCASTER
136136
* @example
137-
* ```
137+
* ```ts
138138
* const encodedMetadata = encodeSignedKeyRequestMetadata({
139139
* requestSigner: "0x123...",
140140
* keyRequestSignature: "0xabcd...",
@@ -167,7 +167,7 @@ export function encodeSignedKeyRequestMetadata(options: {
167167
* @returns A promise that resolves to the hexadecimal string of the encoded ABI parameters.
168168
* @extension FARCASTER
169169
* @example
170-
* ```
170+
* ```ts
171171
* import { getSignedKeyRequestMetadata } from "thirdweb/extensions/farcaster";
172172
*
173173
* // Using an existing signature

packages/thirdweb/src/extensions/prebuilts/deploy-erc1155.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export type DeployERC1155ContractOptions = Prettify<
4242
* @returns The deployed contract address.
4343
* @extension DEPLOY
4444
* @example
45-
* ```
45+
* ```ts
4646
* import { deployERC1155Contract } from "thirdweb/deploys";
4747
* const contractAddress = await deployERC1155Contract({
4848
* chain,

packages/thirdweb/src/extensions/prebuilts/deploy-erc20.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export type DeployERC20ContractOptions = Prettify<
4040
* @returns The deployed contract address.
4141
* @extension DEPLOY
4242
* @example
43-
* ```
43+
* ```ts
4444
* import { deployERC20Contract } from "thirdweb/deploys";
4545
* const contractAddress = await deployERC20Contract({
4646
* chain,

packages/thirdweb/src/extensions/prebuilts/deploy-erc721.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export type DeployERC721ContractOptions = Prettify<
4646
* @returns The deployed contract address.
4747
* @extension DEPLOY
4848
* @example
49-
* ```
49+
* ```ts
5050
* import { deployERC721Contract } from "thirdweb/deploys";
5151
* const contractAddress = await deployERC721Contract({
5252
* chain,

0 commit comments

Comments
 (0)