aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-27 05:47:02 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-27 05:47:02 +0800
commit4fe410a277f13bc637ffe1c1c5b023d957a2bef8 (patch)
tree511d43091518c5a6eb8a8b92ab21294f3bafea93 /packages
parent3235606644fda04a7a8933151ec129e307a4c494 (diff)
downloaddexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar
dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar.gz
dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar.bz2
dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar.lz
dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar.xz
dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar.zst
dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.zip
Add typescript typings for Open API spec
Diffstat (limited to 'packages')
-rw-r--r--packages/sra/package.json1
-rw-r--r--packages/sra/src/api.ts4
2 files changed, 4 insertions, 1 deletions
diff --git a/packages/sra/package.json b/packages/sra/package.json
index 47faafd92..cede40761 100644
--- a/packages/sra/package.json
+++ b/packages/sra/package.json
@@ -31,6 +31,7 @@
"dependencies": {},
"devDependencies": {
"@0xproject/tslint-config": "^1.0.4",
+ "@loopback/openapi-v3-types": "^0.8.2",
"@types/mocha": "^2.2.42",
"chai": "^4.0.1",
"copyfiles": "^1.2.0",
diff --git a/packages/sra/src/api.ts b/packages/sra/src/api.ts
index 98b5ce96a..9043f6245 100644
--- a/packages/sra/src/api.ts
+++ b/packages/sra/src/api.ts
@@ -1,4 +1,6 @@
-export const api = {
+import { OpenApiSpec } from '@loopback/openapi-v3-types';
+
+export const api: OpenApiSpec = {
openapi: '3.0.0',
info: {
version: '1.0.0',