Skip to content

feat(contract): new type util for custom schema#94

Merged
dinwwwh merged 2 commits into
mainfrom
feat/contract/type-utils
Jan 16, 2025
Merged

feat(contract): new type util for custom schema#94
dinwwwh merged 2 commits into
mainfrom
feat/contract/type-utils

Conversation

@dinwwwh
Copy link
Copy Markdown
Member

@dinwwwh dinwwwh commented Jan 16, 2025

export const getting = oc.input(type<{ id: string }>());

type can be used to create a custom schema, which helps reduce bundle size when extensive validation logic isn't required.

Closes: https://github.com/unnoq/orpc/issues/89

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
orpc ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 16, 2025 11:04am

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jan 16, 2025

Open in Stackblitz

More templates

@orpc/client

npm i https://pkg.pr.new/@orpc/client@94

@orpc/contract

npm i https://pkg.pr.new/@orpc/contract@94

@orpc/react-query

npm i https://pkg.pr.new/@orpc/react-query@94

@orpc/server

npm i https://pkg.pr.new/@orpc/server@94

@orpc/openapi

npm i https://pkg.pr.new/@orpc/openapi@94

@orpc/shared

npm i https://pkg.pr.new/@orpc/shared@94

@orpc/vue-colada

npm i https://pkg.pr.new/@orpc/vue-colada@94

@orpc/vue-query

npm i https://pkg.pr.new/@orpc/vue-query@94

@orpc/zod

npm i https://pkg.pr.new/@orpc/zod@94

commit: dc8f399

@dinwwwh dinwwwh merged commit 44bdf93 into main Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

contract without schema?

1 participant