Skip to main content

Craftgen IPC api

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
41%
Published
a week ago (0.0.6)
function createTRPCContext
createTRPCContext(opts: { headers: Headers; auth: Session | null; }): unknown

This is the actual context you'll use in your router. It will be used to process every request that goes through your tRPC endpoint

Parameters

opts: { headers: Headers; auth: Session | null; }

Return Type

unknown

Add Package

deno add @craftgen/ipc-api

Import symbol

import { createTRPCContext } from "@craftgen/ipc-api";

Add Package

npx jsr add @craftgen/ipc-api

Import symbol

import { createTRPCContext } from "@craftgen/ipc-api";

Add Package

yarn dlx jsr add @craftgen/ipc-api

Import symbol

import { createTRPCContext } from "@craftgen/ipc-api";

Add Package

pnpm dlx jsr add @craftgen/ipc-api

Import symbol

import { createTRPCContext } from "@craftgen/ipc-api";

Add Package

bunx jsr add @craftgen/ipc-api

Import symbol

import { createTRPCContext } from "@craftgen/ipc-api";