Commit Graph
38055 Commits
Author SHA1 Message Date
rafaelsouzaf 2cbd2d48e8 Add more test files. 2017-12-09 16:41:54 -03:00
rafaelsouzaf 6fd4625f82 Add more tests files. 2017-12-09 12:03:06 -03:00
rafaelsouzaf b453000bc5 Going back with Dictionary. It didn't work as expected :-/ 2017-12-09 12:00:10 -03:00
rafaelsouzaf aff418b46d Optimize imports. 2017-12-08 21:07:53 -03:00
rafaelsouzaf 32bfe6b288 Add "Function" support param in server.events.emit() 2017-12-08 20:51:40 -03:00
rafaelsouzaf baeccd245e Add request.route.auth.access() method 2017-12-08 20:49:42 -03:00
rafaelsouzaf b74e40249b Add ResponseEvent types. 2017-12-08 20:48:07 -03:00
rafaelsouzaf 81e58330cc Add h.redirect() without param to work with hapijs official tests. 2017-12-08 19:52:20 -03:00
rafaelsouzaf 9fb4ab18b3 Replace Dictionary<T> by Map<T, T> supported in es6 2017-12-08 19:44:37 -03:00
Rafael S. Fijalkowski e189cf6b5e Replacing any with object. Following the idea of @ctaggart (#4)
Review of TS types using 'object' and 'any' mainly.
2017-12-08 19:10:47 -03:00
rafaelsouzaf bbfeda585b Add events (server and request) test files. 2017-12-08 12:22:32 -03:00
rafaelsouzaf 81a8109fed Separate ServerEvents in a new file. Fixed method overriding from Podium interface. I hope. 2017-12-08 12:19:12 -03:00
rafaelsouzaf eebddd8c14 Add RequestEvents type in index.d.ts 2017-12-08 11:47:33 -03:00
rafaelsouzaf 43152aaabd Add new RequestEvents type. 2017-12-08 11:46:45 -03:00
rafaelsouzaf fddcaebffa Add object arguments (...args) instead of Function. Is it good idea? TODO created. 2017-12-08 11:43:06 -03:00
rafaelsouzaf c739273012 Add overloaded function "response(value: object)" to work with hapijs test:
https://github.com/hapijs/hapi/blob/4144f9397cf639e22379699cdfc967d2c84e8509/test/response.js#L220

Following suggestion of @gitawego
2017-12-07 21:36:04 -03:00
rafaelsouzaf 18e4f83a24 Added "continue.ts" test file. 2017-12-06 22:54:33 -03:00
rafaelsouzaf fd6f26dcd0 RequestExtPointFunction should inherit from Lifecycle.Method 2017-12-06 22:52:47 -03:00
rafaelsouzaf c159a74456 Added more tests files. 2017-12-06 22:19:33 -03:00
rafaelsouzaf ffad3c7f82 Changed state() method param from string to object. 2017-12-06 22:18:06 -03:00
rafaelsouzaf 88a3292c9d Added some test files. 2017-12-06 00:11:51 -03:00
rafaelsouzaf 5334e6bf7e Reviewed some server types. 2017-12-04 20:22:31 -03:00
rsouza c0337babb6 Revert "examples replacing any with object"
This reverts commit cb083b4

It was my mistake. The example code is outside of v17 folder.
2017-12-04 15:53:37 -03:00
BorntraegerMarc cb5d8da22f Added first hapi TS tests 2017-12-04 09:34:47 +01:00
Rafael S. Fijalkowski 8a7380e075 Merge pull request #3 from ctaggart/hapi-17-object
Replacing any with object
2017-12-03 20:23:15 -03:00
Cameron Taggart cb083b4d69 examples replacing any with object 2017-12-03 18:26:13 -03:00
rafaelsouzaf 4b5b1390fd Refactored Json and Util namespaces. 2017-12-03 16:09:52 -03:00
rafaelsouzaf f7e3fc1e8d Reviewed some server types. 2017-12-03 15:57:40 -03:00
rafaelsouzaf c424efdbe7 Reviewed and added sonme Function Overloading to follow best practices: http://definitelytyped.org/guides/best-practices.html 2017-12-03 10:27:26 -03:00
rafaelsouzaf 4d8024908f Added more Server types. 2017-11-30 20:28:35 -03:00
rafaelsouzaf 84cd35512e Fix in JsDocs. 2017-11-30 20:26:37 -03:00
rafaelsouzaf 6bc0699906 Solved TODO about plugin, 2017-11-30 20:26:11 -03:00
rafaelsouzaf b5a3441be2 Fix in JsDocs. 2017-11-30 20:25:27 -03:00
rafaelsouzaf 7d6c575686 Reviewed Request declarations. 2017-11-30 15:15:14 -03:00
rafaelsouzaf 304bf7ff45 Reviewed Response declarations. 2017-11-30 11:26:55 -03:00
rsouza 3eb657d030 Fix. Each lifecycle method must return a value or a promise. 2017-11-29 16:37:04 -03:00
rsouza 12d64487d4 Added some Lifecycle definitions. 2017-11-29 16:33:59 -03:00
rsouza c8874b4a15 Reviewing Routes type implementation. 2017-11-29 15:23:43 -03:00
rafaelsouzaf 9a5c7a3104 Renamed Lifecycle methods for better understanding. 2017-11-28 21:57:18 -03:00
rafaelsouzaf 4098227016 Updated with new types. 2017-11-28 21:50:00 -03:00
rafaelsouzaf 81b7abd1d4 Solved some TODO's 2017-11-28 21:49:37 -03:00
rafaelsouzaf d75c57e480 Using new Lifecycle namespace. 2017-11-28 21:49:02 -03:00
rafaelsouzaf 00b0f483af Added Json namespace. Cloned to v16 types. 2017-11-28 21:48:32 -03:00
rafaelsouzaf c26417bb59 Reviewing Route types and getting better. Not finished yet. 2017-11-28 21:46:35 -03:00
rafaelsouzaf 55e66bcf7d Creating namespace Lifecycle and moving FailAction to inside. 2017-11-28 21:44:54 -03:00
rafaelsouzaf 3907d25ab7 Added more Server types 2017-11-27 20:58:46 -03:00
rsouza 6799c6506d Added more Server definitions. 2017-11-27 13:12:09 -03:00
rafaelsouzaf c4d48d6542 Updated index with last file definitions. 2017-11-26 23:21:04 -03:00
rafaelsouzaf 1d687c3144 Added Server Auth definitions. 2017-11-26 23:19:58 -03:00
rafaelsouzaf 544cf39a2d Added generic LifeCycle interfaces. 2017-11-26 23:18:12 -03:00