Skip to content

Commit 1ddea60

Browse files
jablkogithub/workflows/support-window.yml
authored andcommitted
🤖 Merge PR DefinitelyTyped#58840 [README] Fix ERR_IMPORT_ASSERTION_TYPE_MISSING by @jablko
* [README] Fix ERR_IMPORT_ASSERTION_TYPE_MISSING * [README] 🤖 Update support window diagram https://github.com/jablko/DefinitelyTyped/actions/runs/1860034598 Co-authored-by: github/workflows/support-window.yml <bot@typescriptlang.org>
1 parent 42ce4a3 commit 1ddea60

4 files changed

Lines changed: 17 additions & 16 deletions

File tree

‎.github/workflows/support-window.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
1212
workflow_dispatch:
1313
jobs:
14-
build:
14+
support-window:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v2

‎docs/support-window.svg‎

Lines changed: 1 addition & 1 deletion
Loading

‎scripts/support-window.ts‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { utcYear } from "d3-time";
66
import { utcFormat } from "d3-time-format";
77
import { JSDOM } from "jsdom";
88
import serialize from "w3c-xmlserializer";
9-
import data from "../docs/support-window.json";
9+
import data from "../docs/support-window.json" assert { type: "json" };
1010

1111
const width = 640;
1212
const height = 250;
@@ -45,6 +45,7 @@ const y = scaleBand()
4545
.range([margin.top, height - margin.bottom])
4646
.padding(0.2);
4747

48+
// https://github.com/d3/d3/wiki#supported-environments
4849
const dom = new JSDOM();
4950
const svg = select(dom.window.document.body)
5051
.append("svg")
@@ -62,14 +63,16 @@ const axes = svg
6263
.attr("stroke-dasharray", 2)
6364
.attr("stroke-opacity", 0.5)
6465
.attr("stroke-width", 0.5);
65-
const xAxis = axes.append("g").attr("transform", `translate(0,${margin.top})`);
66-
axisTop(x)
66+
const gx = axes.append("g").attr("transform", `translate(0,${margin.top})`);
67+
const xAxis = axisTop(x)
6768
.ticks(5)
68-
.tickSize(margin.top - height - margin.bottom)(xAxis);
69-
xAxis.selectAll(".domain").remove();
70-
const yAxis = axes.append("g");
71-
axisLeft(y).tickSize(margin.left - width - margin.right)(yAxis);
72-
yAxis.selectAll(".domain").remove();
69+
.tickSize(margin.top - height - margin.bottom);
70+
xAxis(gx);
71+
gx.selectAll(".domain").remove();
72+
const gy = axes.append("g");
73+
const yAxis = axisLeft(y).tickSize(margin.left - width - margin.right);
74+
yAxis(gy);
75+
gy.selectAll(".domain").remove();
7376
svg
7477
.append("g")
7578
.attr("shape-rendering", "crispEdges")
@@ -108,7 +111,7 @@ texts
108111
.text((d) => d.version);
109112
texts
110113
.append("g")
111-
.attr("font-size", "0.8em")
114+
.attr("font-size", "smaller")
112115
.selectAll("text")
113116
.data(supported)
114117
.join("text")
@@ -118,7 +121,7 @@ texts
118121
.text((d) => formatDate(d.releaseDate));
119122
texts
120123
.append("g")
121-
.attr("font-size", "0.8em")
124+
.attr("font-size", "smaller")
122125
.selectAll("text")
123126
.data(supported)
124127
.join("text")

‎scripts/tsconfig.json‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
"exclude": ["fix-tslint.ts", "update-config"],
33
"compilerOptions": {
44
"target": "es6",
5-
"module": "es2020",
5+
"module": "esnext",
66
"strict": true,
77
"baseUrl": "../types",
88
"moduleResolution": "node",
99
"resolveJsonModule": true,
10-
"typeRoots": [
11-
"../types"
12-
],
10+
"typeRoots": ["../types"],
1311
"types": [],
1412
"allowSyntheticDefaultImports": true,
1513
"forceConsistentCasingInFileNames": true

0 commit comments

Comments
 (0)