-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: restructure docs layout, add additional content (#1207)
- Loading branch information
1 parent
1b395f3
commit fa2d2d6
Showing
48 changed files
with
1,423 additions
and
612 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
github: [arktypeio] | ||
drips: | ||
ethereum: | ||
ownedBy: "0xD5c5Fe5DF95adf8DA1Ae640fCAE8f72795657fa5" | ||
ethereum: | ||
ownedBy: "0xD5c5Fe5DF95adf8DA1Ae640fCAE8f72795657fa5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
import { attest, contextualize } from "@ark/attest" | ||
import type { Completions } from "@ark/attest/internal/cache/writeAssertionCache.js" | ||
import type { autocomplete } from "@ark/util" | ||
|
||
contextualize(() => { | ||
it("unwraps unversioned", () => { | ||
attest(attest({ foo: "bar" }).unwrap()).equals({ | ||
const unwrapped = attest({ foo: "bar" }).unwrap() | ||
attest<{ foo: string }>(unwrapped).equals({ | ||
foo: "bar" | ||
}) | ||
}) | ||
|
||
it("unwraps serialized", () => { | ||
attest( | ||
attest({ foo: Symbol("unwrappedSymbol") }).unwrap({ serialize: true }) | ||
).snap({ foo: "Symbol(unwrappedSymbol)" }) | ||
const unwrapped = attest({ foo: Symbol("unwrappedSymbol") }).unwrap({ | ||
serialize: true | ||
}) | ||
attest(unwrapped).snap({ foo: "Symbol(unwrappedSymbol)" }) | ||
}) | ||
|
||
it("unwraps completions", () => { | ||
const unwrapped = attest({ foo: "b" } satisfies { | ||
foo: autocomplete<"bar"> | ||
}).completions.unwrap() | ||
|
||
attest<Completions>(unwrapped).snap({ b: ["bar"] }) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.