Skip to content

Commit 86bbadd

Browse files
committed
chore: add cursor commands config
Made-with: Cursor
1 parent 21a92e9 commit 86bbadd

4 files changed

Lines changed: 13 additions & 18 deletions

File tree

.cursor/commands/armstrong.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
senator armstrong is reviewing the work on the current branch and he's angry. he will destroy both of us if he finds a single flaw. think big picture and iterate ruthlessly, fundamentally improving the design and implementation. once you are absolutely certain we won't be brutalized, report why senator armstrong will approve of the current changes using as many memes as possible. our fate is in your hands.

ark/docs/content/docs/blog/2.2-twitter.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Regex literals in your definitions now carry full type inference. x-prefix parse
4141

4242
```ts
4343
const T = type({
44-
birthday: "x/^(?<month>\\d{2})-(?<day>\\d{2})-(?<year>\\d{4})$/"
44+
birthday: "x/^(?<month>\\d{2})-(?<day>\\d{2})-(?<year>\\d{4})$/"
4545
})
4646

4747
T.assert({ birthday: "05-21-1993" }).birthday.groups.month // "05"
@@ -57,9 +57,9 @@ Zod, Valibot, or anything else that implements the spec.
5757

5858
```ts
5959
const User = type({
60-
name: "string",
61-
age: "number",
62-
address: { street: "string" }
60+
name: "string",
61+
age: "number",
62+
address: { street: "string" }
6363
})
6464
```
6565

@@ -87,14 +87,14 @@ Not everything in ArkType maps cleanly to JSON Schema. Now you can handle incomp
8787

8888
```ts
8989
const T = type({
90-
birthday: "Date"
90+
birthday: "Date"
9191
})
9292

9393
T.toJsonSchema({
94-
fallback: {
95-
date: ctx => ({ ...ctx.base, type: "string", format: "date-time" }),
96-
default: ctx => ctx.base
97-
}
94+
fallback: {
95+
date: ctx => ({ ...ctx.base, type: "string", format: "date-time" }),
96+
default: ctx => ctx.base
97+
}
9898
})
9999
```
100100

@@ -114,10 +114,7 @@ const myType = type("1 < number < 10")
114114
const minNodes = myType.select("min")
115115
const exclusiveMins = minNodes.filter(n => n.exclusive)
116116

117-
myType.configure(
118-
{ description: "a special domain" },
119-
"domain"
120-
)
117+
myType.configure({ description: "a special domain" }, "domain")
121118
```
122119

123120
---

ark/docs/content/docs/blog/2.2.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,7 @@ These selectors can also be used to [target specific references for configuratio
198198
const User = type({ name: "string", age: "number" })
199199

200200
// add the description to all domain nodes
201-
const configured = User.configure(
202-
{ description: "a special string" },
203-
"domain"
204-
)
201+
const configured = User.configure({ description: "a special string" }, "domain")
205202

206203
configured.get("name").description // "a special string"
207204
configured.get("age").description // "a special string"

ark/docs/content/docs/objects/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ The `props` getter returns an array of property descriptors for introspection:
646646
const User = type({
647647
name: "string",
648648
"age?": "number",
649-
"role": "'admin' | 'user' = 'user'"
649+
role: "'admin' | 'user' = 'user'"
650650
})
651651

652652
for (const prop of User.props) {

0 commit comments

Comments
 (0)