Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
8316de8d82 | |||
f2c953f0e8 | |||
5696b3cb19 | |||
3e3b955f04 | |||
d9326300b0 | |||
b9b80d1078 | |||
bfc8541a03 | |||
5c5b59b510 | |||
f8a06daee7 |
@ -40,11 +40,11 @@ snyk:
|
||||
# test stage
|
||||
# ====================
|
||||
|
||||
testLTS:
|
||||
testStable:
|
||||
stage: test
|
||||
script:
|
||||
- npmci npm prepare
|
||||
- npmci node install lts
|
||||
- npmci node install stable
|
||||
- npmci npm install
|
||||
- npmci npm test
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
|
@ -14,4 +14,4 @@
|
||||
"npmGlobalTools": [],
|
||||
"npmAccessLevel": "public"
|
||||
}
|
||||
}
|
||||
}
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@apiglobal/typedrequest-interfaces",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.10",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
15
package.json
15
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@apiglobal/typedrequest-interfaces",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.10",
|
||||
"private": false,
|
||||
"description": "interfaces for making typed requests",
|
||||
"main": "dist/index.js",
|
||||
@ -20,5 +20,16 @@
|
||||
"tslint": "^5.11.0",
|
||||
"tslint-config-prettier": "^1.15.0"
|
||||
},
|
||||
"dependencies": {}
|
||||
"dependencies": {},
|
||||
"files": [
|
||||
"ts/*",
|
||||
"ts_web/*",
|
||||
"dist/*",
|
||||
"dist_web/*",
|
||||
"dist_ts_web/*",
|
||||
"assets/*",
|
||||
"cli.js",
|
||||
"npmextra.json",
|
||||
"readme.md"
|
||||
]
|
||||
}
|
||||
|
26
readme.md
Normal file
26
readme.md
Normal file
@ -0,0 +1,26 @@
|
||||
# @apiglobal/typedrequest-interfaces
|
||||
interfaces for making typed requests
|
||||
|
||||
## Availabililty and Links
|
||||
* [npmjs.org (npm package)](https://www.npmjs.com/package/@apiglobal/typedrequest-interfaces)
|
||||
* [gitlab.com (source)](https://gitlab.com/apiglobal/typedrequest-interfaces)
|
||||
* [github.com (source mirror)](https://github.com/apiglobal/typedrequest-interfaces)
|
||||
* [docs (typedoc)](https://apiglobal.gitlab.io/typedrequest-interfaces/)
|
||||
|
||||
## Status for master
|
||||
[](https://gitlab.com/apiglobal/typedrequest-interfaces/commits/master)
|
||||
[](https://gitlab.com/apiglobal/typedrequest-interfaces/commits/master)
|
||||
[](https://www.npmjs.com/package/@apiglobal/typedrequest-interfaces)
|
||||
[](https://snyk.io/test/npm/@apiglobal/typedrequest-interfaces)
|
||||
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
||||
[](https://prettier.io/)
|
||||
|
||||
## Usage
|
||||
|
||||
For further information read the linked docs at the top of this readme.
|
||||
|
||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
||||
|
||||
[](https://maintainedby.lossless.com)
|
@ -2,7 +2,7 @@ import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as typedrequestInterfaces from '../ts/index';
|
||||
|
||||
tap.test('first test', async () => {
|
||||
|
||||
typedrequestInterfaces;
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
10
ts/index.ts
10
ts/index.ts
@ -1,7 +1,11 @@
|
||||
import * as plugins from './typedrequest-interfaces.plugins';
|
||||
|
||||
export interface ITypedRequest {
|
||||
method: string;
|
||||
request: object;
|
||||
response: object;
|
||||
}
|
||||
}
|
||||
|
||||
export interface IBroadCastEvent<T> {
|
||||
name: string;
|
||||
uniqueEventId: string;
|
||||
payload: T;
|
||||
}
|
||||
|
@ -1,4 +0,0 @@
|
||||
const removeme = {};
|
||||
export {
|
||||
removeme
|
||||
}
|
Reference in New Issue
Block a user