Skip to content

Commit

Permalink
feat: update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosantangelo committed Feb 19, 2021
1 parent cb98bc7 commit c35f78c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api-extractor.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
*
* DEFAULT VALUE: false
*/
"skipLibCheck": true,
"skipLibCheck": true
},
/**
* Configures how the API report file (*.api.md) will be generated.
Expand Down Expand Up @@ -129,7 +129,7 @@
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
* DEFAULT VALUE: "<projectFolder>/etc/"
*/
"reportFolder": "<projectFolder>/report/",
"reportFolder": "<projectFolder>/report/"
/**
* Specifies the folder where the temporary report file is written. The file name portion is determined by
* the "reportFileName" setting.
Expand Down
42 changes: 42 additions & 0 deletions report/schemas.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,32 @@ export type AbstractTypedSchema<T> = {

export { Ajv }

// @alpha
export enum ChainId {
// (undocumented)
ETHEREUM_GOERLI = 5,
// (undocumented)
ETHEREUM_KOVAN = 42,
// (undocumented)
ETHEREUM_MAINNET = 1,
// (undocumented)
ETHEREUM_RINKEBY = 4,
// (undocumented)
ETHEREUM_ROPSTEN = 3,
// (undocumented)
MATIC_MAINNET = 89,
// (undocumented)
MATIC_MUMBAI = 13881
}

// @alpha (undocumented)
export namespace ChainId {
const // (undocumented)
schema: JSONSchema<ChainId>;
const // (undocumented)
validate: ValidateFunction<ChainId>;
}

// @public
export function generateValidator<T>(schema: JSONSchema<T>): ValidateFunction<T>;

Expand All @@ -36,6 +62,22 @@ export namespace MetaTransaction {
validate: ValidateFunction<MetaTransaction>;
}

// @alpha
export enum Network {
// (undocumented)
ETHEREUM = "ETHEREUM",
// (undocumented)
MATIC = "MATIC"
}

// @alpha (undocumented)
export namespace Network {
const // (undocumented)
schema: JSONSchema<Network>;
const // (undocumented)
validate: ValidateFunction<Network>;
}

export { ValidateFunction }

// @public
Expand Down

0 comments on commit c35f78c

Please sign in to comment.