@typescript-eslint/eslint-plugin error: 'Route' is defined but never used (no-unused-vars)

后端 未结 4 938
傲寒
傲寒 2021-02-12 11:10

After eslint adds typescript check, there will be an error when the attribute variable in the class definition is Array. \"e

4条回答
  •  清酒与你
    2021-02-12 11:19

    The pictures added to my questions can not be browsed. In order to facilitate other people to help answer the questions, add a screenshot of my code in the form of answers.

    import {Route} from '@/app/router/Route';
    
    class YabRouter {
        public widthOutAuthRoutes: Route[] = [];
        public systemConfigRoutes: Route[] = [];
        public staticRoutes: Route[] = [];
        public dynamicRoutes: Route[] = [];
    

提交回复
热议问题