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.

fix out of date bench name

Tyler fac17f25 9cc03533

+3 -3
+3 -3
tests/infer.bench.ts
··· 1 1 import { bench } from "@ark/attest"; 2 2 import { lx } from "../src/lib.ts"; 3 3 4 - bench("InferNS with simple object", () => { 4 + bench("infer with simple object", () => { 5 5 const schema = lx.namespace("test.simple", { 6 6 main: lx.object({ 7 7 id: lx.string({ required: true }), ··· 11 11 return schema.infer; 12 12 }).types([221, "instantiations"]); 13 13 14 - bench("InferNS with complex nested structure", () => { 14 + bench("infer with complex nested structure", () => { 15 15 const schema = lx.namespace("test.complex", { 16 16 post: lx.record({ 17 17 key: "tid", ··· 34 34 return schema.infer; 35 35 }).types([454, "instantiations"]); 36 36 37 - bench("InferNS with app.bsky.feed.defs namespace", () => { 37 + bench("infer with app.bsky.feed.defs namespace", () => { 38 38 const schema = lx.namespace("app.bsky.feed.defs", { 39 39 postView: lx.object({ 40 40 uri: lx.string({ required: true, format: "at-uri" }),