diff --git a/docs/app.tsx b/docs/app.tsx index ab972bd96..8666d3768 100644 --- a/docs/app.tsx +++ b/docs/app.tsx @@ -9,6 +9,10 @@ const NODE_VERSIONS = [22, 21, 20, 19, 18, 16]; const BUN_VERSIONS = [1]; +interface BenchmarkResponse { + results: BenchmarkResult[]; +} + interface BenchmarkResult { name: string; benchmark: string; @@ -467,7 +471,7 @@ class App extends Component< componentDidMount() { NODE_VERSIONS.forEach((v, i) => { fetch(`results/node-${v}.json`) - .then(response => response.json()) + .then(response => response.json() as Promise) .then(data => { this.setState(state => ({ ...state, @@ -494,7 +498,7 @@ class App extends Component< BUN_VERSIONS.forEach(v => { fetch(`results/bun-${v}.json`) - .then(response => response.json()) + .then(response => response.json() as Promise) .then(data => { this.setState(state => ({ ...state, diff --git a/docs/dist/app.js b/docs/dist/app.js index 167bca4a4..77a8049a8 100644 --- a/docs/dist/app.js +++ b/docs/dist/app.js @@ -57,8 +57,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); - return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing.");