Skip to content

Commit

Permalink
Fix Missing Twoslash Directives
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay committed Nov 26, 2024
1 parent 665fc51 commit 0cbdc0e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ your pattern library to JSR, be weary of [slow types](https://jsr.io/docs/about-
In the previous code block––for example––we would need to add an explicit type to avoid static
analysis degradation.

```ts
```ts twoslash
import { T } from "structured-outputs"

export namespace P {
Expand Down Expand Up @@ -139,11 +139,13 @@ here's how you can create a custom type.

Let's create an `any` type (not intended to be used in production).

```ts
const any: Ty<any, never, false> = Ty(
```ts twoslash
import { T } from "structured-outputs"
// ---cut---
const any: T.Ty<any, never, false> = T.Ty(
() => ({
type: "object",,
properties: {}
type: "object",
properties: {},
}),
false,
)
Expand Down

0 comments on commit 0cbdc0e

Please sign in to comment.