diff options
author | Fabio Berger <me@fabioberger.com> | 2018-09-29 01:59:28 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-09-29 01:59:28 +0800 |
commit | c7e26cd4480e7345fccad693fa5bc15180eeac7d (patch) | |
tree | 269e566e7b090c3c314d38d13d8f278ab58abf3a /packages/ethereum-types/src | |
parent | a737cfa004ee1dc18be935f61fb9c289ed5623fd (diff) | |
download | dexon-0x-contracts-c7e26cd4480e7345fccad693fa5bc15180eeac7d.tar dexon-0x-contracts-c7e26cd4480e7345fccad693fa5bc15180eeac7d.tar.gz dexon-0x-contracts-c7e26cd4480e7345fccad693fa5bc15180eeac7d.tar.bz2 dexon-0x-contracts-c7e26cd4480e7345fccad693fa5bc15180eeac7d.tar.lz dexon-0x-contracts-c7e26cd4480e7345fccad693fa5bc15180eeac7d.tar.xz dexon-0x-contracts-c7e26cd4480e7345fccad693fa5bc15180eeac7d.tar.zst dexon-0x-contracts-c7e26cd4480e7345fccad693fa5bc15180eeac7d.zip |
Un-nest the interface to fix the doc rendering
Diffstat (limited to 'packages/ethereum-types/src')
-rw-r--r-- | packages/ethereum-types/src/index.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/ethereum-types/src/index.ts b/packages/ethereum-types/src/index.ts index a92dbdd1b..916661638 100644 --- a/packages/ethereum-types/src/index.ts +++ b/packages/ethereum-types/src/index.ts @@ -366,11 +366,7 @@ export type ErrorType = export type ErrorSeverity = 'error' | 'warning'; export interface SolcError { - sourceLocation?: { - file: string; - start: number; - end: number; - }; + sourceLocation?: SourceLocation; type: ErrorType; component: 'general' | 'ewasm'; severity: ErrorSeverity; @@ -378,6 +374,12 @@ export interface SolcError { formattedMessage?: string; } +export interface SourceLocation { + file: string; + start: number; + end: number; +} + export interface EvmOutput { bytecode: EvmBytecodeOutput; deployedBytecode: EvmBytecodeOutput; |