-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs for coercing nullish values (#3067)
* Add docs for coercing nullish values * Clean up coerce doc * Tweak --------- Co-authored-by: Colin McDonnell <[email protected]>
- Loading branch information
1 parent
7e9f3a4
commit 0bf94b2
Showing
3 changed files
with
35 additions
and
35 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
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,29 +1,3 @@ | ||
import { z } from "./src"; | ||
import * as mod from "node:module"; | ||
z; | ||
|
||
// @ts-ignore | ||
// const arg = await import("./index"); | ||
// arg; | ||
// require.resolve(arg); | ||
|
||
load: { | ||
} | ||
interface A<T> { | ||
name: T; | ||
children: any; | ||
render(): ReadableStream | string; | ||
} | ||
function Hyper<T>(arg: T) { | ||
return function () {} as any as { | ||
prototype: A<T>; | ||
new (): A<T>; | ||
}; | ||
} | ||
|
||
export default class extends Hyper({ name: 1234 }) { | ||
render() { | ||
// this.name.name; | ||
return `asdf ${this.children} asdf`; | ||
} | ||
} | ||
z; |