-
I'm seeing warnings from webpack in my browser console:
```
[webpack-dev-server] WARNING in ../../node_modules/superstruct/dist/index.mjs
Module Warning (from ../../node_modules/source-map-loader…
-
I.e. be able to do:
```ts
import { taskId, userId } from "src/entities";
const jobPayload = z.object({
taskId,
userIds: z.array(userId),
]);
type JobPayload = Infer;
const payload:…
-
How to create schema for this object?
```js
{
base: { version: "v1" }, // may be "v2", etc
en: { /* lang constant */ },
ge: { /* lang constant */ },
fr: { /* lang constant */ },
/* ..…
-
After superstruct 1.0.3 update I get multiple warnings, such as:
```
WARNING in ./node_modules/superstruct/dist/index.mjs
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Fail…
-
以下気になるライブラリー
v8n
zod
validatorjs
Validate.js
ajv
yup
joi
superstruct
ow
typia
banditypes
valibot
deep-waters
Vest
lodine.js
nope
bueno
schema
-
Our sdk relies on `getGovernance` from `@solana/spl-governance`. When the sdk is imported into our react project I am seeing an error thrown in console:
```
[bpfUpgradeableLoader.ts:12] Uncaught Typ…
-
Hi everyone,
I stumbled across a seemingly simple example where `Describe` does not work well with `union`. However, it might be I am missing something.
Consider the following:
```ts
type A = …
-
Below is the minimal example to reproduce the error using superstruct 0.15.1 and TypeScript 4.2.3. Expect the not working potion of code to work without error but this is not the case.
```ts
impor…
-
📝 p.216 - 217
🧐 책에서 interface로 api 반환 타입을 정해주었고 Superstruct를 사용해서 런타임에 유효성 검증을 할 수 있는 코드를 제시해주었습니다. 완성된 코드를 작성해주세요.
- interface 관련 코드
```tsx
interface ListItem {
id: string;
content: str…
-
Hi everyone
I have some complex Typescript interfaces from a 3rd party library and I would like to use superstruct to validate at runtime.
Is there a way I can generate a superstruct schema from a…