fix: move flow imports inside module declaration

This commit is contained in:
Justin Starry
2021-02-12 10:16:55 +08:00
committed by Justin Starry
parent eced3776b0
commit b2bf4a5b84
3 changed files with 9 additions and 9 deletions

View File

@ -10,11 +10,10 @@
*
*/
import {Buffer} from 'buffer';
import * as BufferLayout from 'buffer-layout';
import {PublicKey} from './src/publickey';
declare module '@solana/web3.js' {
import typeof {Buffer} from 'buffer';
import typeof * as BufferLayout from 'buffer-layout';
// === src/publickey.js ===
declare export var MAX_SEED_LENGTH: number;
declare export type PublicKeyNonce = [PublicKey, number];
@ -613,7 +612,7 @@ declare module '@solana/web3.js' {
// === src/instruction.js ===
declare export type InstructionType = {|
index: number,
layout: typeof BufferLayout,
layout: BufferLayout,
|};
declare export function encodeData(type: InstructionType, fields: {}): Buffer;