Skip to content

Commit 0771b9d

Browse files
authored
feat: support verbatimModuleSyntax for renderers-js (#48)
1 parent 6a8c6c3 commit 0771b9d

File tree

100 files changed

+1974
-1975
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1974
-1975
lines changed

.changeset/weak-rabbits-hammer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@kinobi-so/renderers-js': patch
3+
---
4+
5+
Have generated TypeScript code for renderers-js support verbatimModuleSyntax

packages/renderers-js/e2e/memo/pnpm-lock.yaml

Lines changed: 255 additions & 264 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/renderers-js/e2e/memo/src/generated/instructions/addMemo.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88

99
import {
1010
AccountRole,
11-
Address,
12-
Codec,
13-
Decoder,
14-
Encoder,
15-
IAccountMeta,
16-
IInstruction,
17-
IInstructionWithAccounts,
18-
IInstructionWithData,
19-
TransactionSigner,
2011
combineCodec,
2112
getStructDecoder,
2213
getStructEncoder,
2314
getUtf8Decoder,
2415
getUtf8Encoder,
16+
type Address,
17+
type Codec,
18+
type Decoder,
19+
type Encoder,
20+
type IAccountMeta,
21+
type IInstruction,
22+
type IInstructionWithAccounts,
23+
type IInstructionWithData,
24+
type TransactionSigner,
2525
} from '@solana/web3.js';
2626
import { MEMO_PROGRAM_ADDRESS } from '../programs';
2727

packages/renderers-js/e2e/memo/src/generated/programs/memo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* @see https://github.com/kinobi-so/kinobi
77
*/
88

9-
import { Address } from '@solana/web3.js';
10-
import { ParsedAddMemoInstruction } from '../instructions';
9+
import { type Address } from '@solana/web3.js';
10+
import { type ParsedAddMemoInstruction } from '../instructions';
1111

1212
export const MEMO_PROGRAM_ADDRESS =
1313
'MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr' as Address<'MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr'>;

packages/renderers-js/e2e/memo/src/generated/shared/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
import {
1010
AccountRole,
11-
Address,
12-
IAccountMeta,
13-
IAccountSignerMeta,
14-
ProgramDerivedAddress,
15-
TransactionSigner,
1611
isProgramDerivedAddress,
1712
isTransactionSigner as web3JsIsTransactionSigner,
13+
type Address,
14+
type IAccountMeta,
15+
type IAccountSignerMeta,
16+
type ProgramDerivedAddress,
17+
type TransactionSigner,
1818
upgradeRoleToSigner,
1919
} from '@solana/web3.js';
2020

packages/renderers-js/e2e/memo/test/_setup.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import {
2-
Commitment,
3-
CompilableTransactionMessage,
4-
Rpc,
5-
RpcSubscriptions,
6-
SolanaRpcApi,
7-
SolanaRpcSubscriptionsApi,
8-
TransactionMessageWithBlockhashLifetime,
9-
TransactionSigner,
2+
type Commitment,
3+
type CompilableTransactionMessage,
4+
type Rpc,
5+
type RpcSubscriptions,
6+
type SolanaRpcApi,
7+
type SolanaRpcSubscriptionsApi,
8+
type TransactionMessageWithBlockhashLifetime,
9+
type TransactionSigner,
1010
airdropFactory,
1111
createSolanaRpc,
1212
createSolanaRpcSubscriptions,

packages/renderers-js/e2e/memo/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"preserveWatchOutput": true,
1818
"skipLibCheck": true,
1919
"strict": true,
20-
"target": "ESNext"
20+
"target": "ESNext",
21+
"verbatimModuleSyntax": true
2122
},
2223
"exclude": ["node_modules"],
2324
"include": ["src", "test"]

packages/renderers-js/e2e/system/pnpm-lock.yaml

Lines changed: 255 additions & 264 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/renderers-js/e2e/system/src/generated/accounts/nonce.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@
77
*/
88

99
import {
10-
Account,
11-
Address,
12-
Codec,
13-
Decoder,
14-
EncodedAccount,
15-
Encoder,
16-
FetchAccountConfig,
17-
FetchAccountsConfig,
18-
MaybeAccount,
19-
MaybeEncodedAccount,
2010
assertAccountExists,
2111
assertAccountsExist,
2212
combineCodec,
@@ -29,16 +19,26 @@ import {
2919
getStructEncoder,
3020
getU64Decoder,
3121
getU64Encoder,
22+
type Account,
23+
type Address,
24+
type Codec,
25+
type Decoder,
26+
type EncodedAccount,
27+
type Encoder,
28+
type FetchAccountConfig,
29+
type FetchAccountsConfig,
30+
type MaybeAccount,
31+
type MaybeEncodedAccount,
3232
} from '@solana/web3.js';
3333
import {
34-
NonceState,
35-
NonceStateArgs,
36-
NonceVersion,
37-
NonceVersionArgs,
3834
getNonceStateDecoder,
3935
getNonceStateEncoder,
4036
getNonceVersionDecoder,
4137
getNonceVersionEncoder,
38+
type NonceState,
39+
type NonceStateArgs,
40+
type NonceVersion,
41+
type NonceVersionArgs,
4242
} from '../types';
4343

4444
export type Nonce = {

packages/renderers-js/e2e/system/src/generated/instructions/advanceNonceAccount.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@
77
*/
88

99
import {
10-
Address,
11-
Codec,
12-
Decoder,
13-
Encoder,
14-
IAccountMeta,
15-
IAccountSignerMeta,
16-
IInstruction,
17-
IInstructionWithAccounts,
18-
IInstructionWithData,
19-
ReadonlyAccount,
20-
ReadonlySignerAccount,
21-
TransactionSigner,
22-
WritableAccount,
2310
combineCodec,
2411
getStructDecoder,
2512
getStructEncoder,
2613
getU32Decoder,
2714
getU32Encoder,
2815
transformEncoder,
16+
type Address,
17+
type Codec,
18+
type Decoder,
19+
type Encoder,
20+
type IAccountMeta,
21+
type IAccountSignerMeta,
22+
type IInstruction,
23+
type IInstructionWithAccounts,
24+
type IInstructionWithData,
25+
type ReadonlyAccount,
26+
type ReadonlySignerAccount,
27+
type TransactionSigner,
28+
type WritableAccount,
2929
} from '@solana/web3.js';
3030
import { SYSTEM_PROGRAM_ADDRESS } from '../programs';
31-
import { ResolvedAccount, getAccountMetaFactory } from '../shared';
31+
import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
3232

3333
export type AdvanceNonceAccountInstruction<
3434
TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS,

0 commit comments

Comments
 (0)