prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

update bench

Tyler 597a7017 1c79b4a9

+4 -5
+1 -1
package.json
··· 24 24 "format": "prettier .", 25 25 "lint": "eslint . --max-warnings 0", 26 26 "test": "vitest run", 27 - "test:bench": "node src/tests/infer.bench.ts", 27 + "test:bench": "node tests/infer.bench.ts", 28 28 "test:update-snapshots": "vitest run -u", 29 29 "tsc": "tsc" 30 30 },
+1 -1
src/lib.ts
··· 1 1 // deno-lint-ignore-file ban-types 2 2 3 - import { InferNS } from "./infer.ts"; 3 + import type { InferNS } from "./infer.ts"; 4 4 5 5 /** @see https://atproto.com/specs/lexicon#overview-of-types */ 6 6 type LexiconType =
+2 -3
tests/infer.bench.ts
··· 1 1 import { bench } from "@ark/attest"; 2 - import type { InferNS } from "../src/infer.ts"; 3 2 import { lx } from "../src/lib.ts"; 4 3 5 4 bench("InferNS with simple object", () => { ··· 11 10 }); 12 11 13 12 return schema.infer; 14 - }).types([63, "instantiations"]); 13 + }).types([62, "instantiations"]); 15 14 16 15 bench("InferNS with complex nested structure", () => { 17 16 const schema = lx.namespace("test.complex", { ··· 35 34 }); 36 35 37 36 return schema.infer; 38 - }).types([125, "instantiations"]); 37 + }).types([124, "instantiations"]);