Commit graph

29 commits

Author SHA1 Message Date
Bruno Windels 695996d6e2 add ILogger and ILogExport interface, to give export correct return type
also move logging related types to own file
2021-11-17 11:39:12 +01:00
RMidhunSuresh 1b13f32d94 Remove resolved todo comment 2021-11-17 15:39:21 +05:30
RMidhunSuresh d01271fb15 _run return T or void depending on boolean 2021-11-17 13:22:19 +05:30
RMidhunSuresh 07a1130db3 children can be array of ISerializedItem 2021-11-17 12:02:12 +05:30
R Midhun Suresh 9c8f96e233
value is optional
Co-authored-by: Bruno Windels <brunow@matrix.org>
2021-11-17 11:43:59 +05:30
RMidhunSuresh b0ab8cd77f Space before { 2021-11-17 11:40:43 +05:30
RMidhunSuresh 58105824d9 Fix error in reduce 2021-11-16 13:08:13 +05:30
RMidhunSuresh 4c1d7a8f2d Use generics over returning unknown 2021-11-15 22:47:38 +05:30
RMidhunSuresh fe69f84c85 Use undefined in LogItem.serialize 2021-11-15 19:32:16 +05:30
RMidhunSuresh ba5f2032ba Make properties in LogItem optional, not null 2021-11-15 19:17:49 +05:30
RMidhunSuresh 7097ba07d1 Replace LogLabelOrNull type with undefined 2021-11-15 18:59:33 +05:30
RMidhunSuresh 30a384fe1e Make LogFilter optional 2021-11-15 18:44:25 +05:30
RMidhunSuresh 520e0f1b89 Use interface ILogItem 2021-11-15 17:29:08 +05:30
RMidhunSuresh bba44abf52 Convert console logger to ts 2021-11-14 16:24:16 +05:30
RMidhunSuresh 2d8b719ab0 Add void return types as well 2021-11-14 15:55:42 +05:30
RMidhunSuresh 29a8260514 Add explicit types for return in methods 2021-11-12 23:12:15 +05:30
RMidhunSuresh f3d0f88f95 Make error public 2021-11-12 15:06:11 +05:30
RMidhunSuresh 09851600f7 Remove unwanted types 2021-11-11 15:35:51 +05:30
RMidhunSuresh 425a3c85a9 Make error prop private and expose via getter 2021-11-11 13:24:52 +05:30
RMidhunSuresh 0f7a78ee25 Make return type explicit 2021-11-11 13:05:12 +05:30
RMidhunSuresh cd7dccd804 Move interface to top 2021-11-10 19:13:35 +05:30
RMidhunSuresh 7a68c971aa Make field readonly 2021-11-10 19:07:24 +05:30
RMidhunSuresh cfa7708b57 Use type imports 2021-11-10 18:51:46 +05:30
RMidhunSuresh e3c85c585e Log callbacks can return more than Promises 2021-11-10 14:42:43 +05:30
RMidhunSuresh 0b4eca4724 Create alias for LogLevel | null 2021-11-10 14:29:23 +05:30
RMidhunSuresh 142d3ef543 Split LogItemValues into union of types 2021-11-10 13:45:37 +05:30
RMidhunSuresh ceb52eedaf Fix imports and add type annotations 2021-11-10 12:36:56 +05:30
RMidhunSuresh 772f7a2757 Account for duration being null 2021-11-10 12:17:43 +05:30
RMidhunSuresh db792ab5a9 Add type annotations to LogItem 2021-11-10 12:06:50 +05:30