对不起,我尝试过这个链接说我要做什么,但没有任何改变,有人可以帮助我.控制台的错误
node_modules/@angular/flex-layout/core/typings/match-media/mock/mock-match-media.d.ts(25,15)中的错误:错误TS2416:"MockMatchMedia"类型中的属性" 注册表"不是可分配给基本类型"MatchMedia"中的相同属性."地图"类型不能指定为"地图"类型.类型'MockMediaQueryList'不能分配给'MediaQueryList'类型.属性"removeListener"的类型不兼容.类型'(:EventListenerOrEventListenerObject)=> void'不能分配给类型'(listener:MediaQueryListListener)=> void'.参数"_"和"监听器"的类型不兼容.类型'MediaQueryListListener'不能分配给'EventListenerOrEventListenerObject'.类型'MediaQueryListListener'不能分配给'EventListenerObject'类型."MediaQueryListListener"类型中缺少属性"handleEvent".node_modules/@angular/flex-layout/core/typings/match-media/mock/mock-match-media.d.ts(82,5):错误TS2416:"MockMediaQueryList"类型中的属性"removeListener"无法分配给基类型'MediaQueryList'中的相同属性.类型'(:EventListenerOrEventListenerObject)=> void'不能分配给类型'(listener:MediaQueryListListener)=> void'.参数' '和'监听器'的类型不兼容.类型'MediaQueryListListener'不能分配给'EventListenerOrEventListenerObject'.类型'MediaQueryListListener'不能分配给'EventListenerObject'类型.node_modules/@angular/flex-layout/core/typings/match-media/mock/mock-match-media.d.ts(83,38):错误TS2304:找不到名称'MediaQueryListEventMap'.node_modules/@angular/flex-layout/core/typings/match-media/mock/mock-match-media.d.ts(83,99):错误TS2304:找不到名称'MediaQueryListEventMap'.node_modules/@angular/flex-layout/core/typings/match-media/mock/mock-match-media.d.ts(84,41):错误TS2304:找不到名称'MediaQueryListEventMap'.node_modules/@angular/flex-layout/core/typings/match-media/mock/mock-match-media.d.ts(84,102):错误TS2304:找不到名称'MediaQueryListEventMap'.node_modules/@angular/flex-layout/core/typings/match-media/mock/mock-match-media.d.ts(95,67):错误TS2304:找不到名称'MediaQueryListEvent'.node_modules/@angular/flex-layout/core/typings/match-media/server-match-media.d.ts(30,5):错误TS2416:类型'ServerMediaQueryList'中的属性'removeListener'不能分配给它基类型'MediaQueryList'中的属性.类型'(:EventListenerOrEventListenerObject)=> void'不能分配给类型'(listener:MediaQueryListListener)=> void'.参数' '和'监听器'的类型不兼容.类型'MediaQueryListListener'不能分配给'EventListenerOrEventListenerObject'.类型'MediaQueryListListener'不能分配给'EventListenerObject'类型.node_modules/@angular/flex-layout/core/typings/match-media/server-match-media.d.ts(31,38):错误TS2304:找不到名称'MediaQueryListEventMap'.node_modules/@angular/flex-layout/core/typings/match-media/server-match-media.d.ts(31,99):错误TS2304:找不到名称'MediaQueryListEventMap'.node_modules/@angular/flex-layout/core/typings/match-media/server-match-media.d.ts(32,41):错误TS2304:找不到名称'MediaQueryListEventMap'.node_modules/@angular/flex-layout/core/typings/match-media/server-match-media.d.ts(32,102):错误TS2304:找不到名称'MediaQueryListEventMap'.node_modules/@angular/flex-layout/core/typings/match-media/server-match-media.d.ts(46,15):错误TS2416:"ServerMatchMedia"类型中的属性" 注册表"不能分配给它基本类型'MatchMedia'中的属性."地图"类型不能指定为"地图"类型.类型'ServerMediaQueryList'不能分配给'MediaQueryList'类型.属性"removeListener"的类型不兼容.类型'(:EventListenerOrEventListenerObject)=> void'不能分配给类型'(listener:MediaQueryListListener)=> void'.参数"_"和"监听器"的类型不兼容.类型'MediaQueryListListener'不能分配给'EventListenerOrEventListenerObject'.类型'MediaQueryListListener'不能分配给'EventListenerObject'类型.node_modules/@angular/flex-layout/core/typings/match-media/server-match-media.d.ts(58,15):错误TS2416:"ServerMatchMedia"类型中的属性"_buildMQL"不能分配给它基本类型'MatchMedia'中的属性.类型'(query:string)=> ServerMediaQueryList'不能分配给'(query:string)=> MediaQueryList'.类型'ServerMediaQueryList'不能分配给'MediaQueryList'类型.node_modules/@angular/flex-layout/core/typings/match-media/server-match-media.d.ts(60,67):错误TS2304:找不到名称'MediaQueryListEvent'.
我有一个在参数中使用2个Instants的方法getIssuesBillable(Instant start, Instant end, ....),我的问题是如何使用Java 8 Instant获得一个月的第一天和一个月的最后一天?我已经尝试使用了withDayOfMonth(),并且lengthOfMonth():
LocalDate initial = LocalDate.now();
LocalDate start = initial.withDayOfMonth(firstDayOfMonth());
LocalDate end = initial.withDayOfMonth(lastDayOfMonth());
Run Code Online (Sandbox Code Playgroud)
但是在这种情况下,在这种情况下,我需要进行转换并做出一些变通办法,如果有人知道更好的方法,我将非常感谢您的任何答复。