Skip to content

Commit 94f15c6

Browse files
Merge pull request #292 from dojoengine/feat/type-docs
feat: docs theme and build
2 parents 7955939 + 82ff016 commit 94f15c6

File tree

4 files changed

+161
-31
lines changed

4 files changed

+161
-31
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"prettier": "^3.3.3",
1717
"tsup": "^8.1.0",
1818
"typedoc": "^0.26.7",
19-
"typedoc-material-theme": "^1.1.0",
19+
"@typhonjs-typedoc/typedoc-theme-dmt": "^0.2.1",
2020
"typedoc-plugin-coverage": "^3.3.0",
2121
"@commitlint/cli": "^18.4.4",
2222
"@commitlint/config-conventional": "^18.4.4",

packages/sdk/src/__tests__/zustand.perf.test.ts

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { createDojoStore } from "../state/zustand";
2-
import { ParsedEntity, SchemaType } from "../types";
3-
import { describe, it, beforeEach, expect } from "vitest";
2+
import { ParsedEntity } from "../types";
3+
import { describe, it, beforeEach } from "vitest";
44
import Benchmark from "benchmark";
55
import {
6-
schema,
76
MockSchemaType,
87
PlayerModel,
98
GameModel,
@@ -79,7 +78,7 @@ describe("Zustand Store Performance Tests", () => {
7978
.on("cycle", (event: any) => {
8079
console.log(String(event.target));
8180
})
82-
.on("complete", function () {
81+
.on("complete", function (this: any) {
8382
console.log("Fastest is " + this.filter("fastest").map("name"));
8483
})
8584
.run({ async: false });
@@ -112,7 +111,7 @@ describe("Zustand Store Performance Tests", () => {
112111
.on("cycle", (event: any) => {
113112
console.log(String(event.target));
114113
})
115-
.on("complete", function () {
114+
.on("complete", function (this: any) {
116115
console.log("Fastest is " + this.filter("fastest").map("name"));
117116
})
118117
.run({ async: false });
@@ -137,7 +136,7 @@ describe("Zustand Store Performance Tests", () => {
137136
.on("cycle", (event: any) => {
138137
console.log(String(event.target));
139138
})
140-
.on("complete", function () {
139+
.on("complete", function (this: any) {
141140
console.log("Fastest is " + this.filter("fastest").map("name"));
142141
})
143142
.run({ async: false });
@@ -161,7 +160,7 @@ describe("Zustand Store Performance Tests", () => {
161160
.on("cycle", (event: any) => {
162161
console.log(String(event.target));
163162
})
164-
.on("complete", function () {
163+
.on("complete", function (this: any) {
165164
console.log("Fastest is " + this.filter("fastest").map("name"));
166165
})
167166
.run({ async: false });

0 commit comments

Comments
 (0)