小编Lui*_*ovo的帖子

Nest.js 构建抛出很多错误

我运行并设置了这个 Nest.js 应用程序一段时间,突然间,当我运行npm run build时,它开始报告此情况。

node_modules/@nestjs/config/dist/config.service.d.ts:1:23 - error TS2305: Module '"./types"' has no exported member 'Path'.

1 import { NoInferType, Path, PathValue } from './types';
                        ~~~~
node_modules/@nestjs/config/dist/config.service.d.ts:1:29 - error TS2305: Module '"./types"' has no exported member 'PathValue'.

1 import { NoInferType, Path, PathValue } from './types';
                              ~~~~~~~~~
node_modules/@nestjs/config/dist/types/path-value.type.d.ts:1:114 - error TS1005: '?' expected.

1 export declare type PathImpl<T, Key extends keyof T> = Key extends string ? T[Key] extends Record<string, any> ? `${Key}.${PathImpl<T[Key], Exclude<keyof T[Key], keyof any[]>> & …
Run Code Online (Sandbox Code Playgroud)

node.js typescript nestjs

8
推荐指数
1
解决办法
2497
查看次数

反转 Google 面积图上的行和列

当我在 Google Drive 上使用面积图时,我可以选择一个选项来“切换行/列”。

现在我正在使用 Javascript API,我想做同样的事情,但在文档中找不到方法。

这是我成功使用的代码。我所需要的只是在 API 上切换行/列。

<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {

var data = google.visualization.arrayToDataTable([
['data',0,1,2,3,4,5,6]
,['2013-04-14 (336)',064,04,03,02,06,02,02]
,['2013-04-21 (169)',0,028,03,02,04,02,02]
,['2013-04-28 (121)',0,0,027,02,01,02,02]
,['2013-05-05 (101)',0,0,0,020,0,01,0]
,['2013-05-12 (688)',0,0,0,0,0143,017,07]
,['2013-05-19 (3226)',0,0,0,0,0,0642,022]
,['2013-05-26 (321)',0,0,0,0,0,0,082]
]);

var options = {
title: 'Company Performance', isStacked:true,
hAxis: {title: 'Year', titleTextStyle: {color: 'red'}}
};

var chart = new google.visualization.AreaChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
Run Code Online (Sandbox Code Playgroud)

任何人都可以帮忙吗?

charts area

1
推荐指数
1
解决办法
3120
查看次数

标签 统计

area ×1

charts ×1

nestjs ×1

node.js ×1

typescript ×1