Skip to content

Documentation / @super-line/core / DataOf

Type Alias: DataOf<C, R>

DataOf<C, R> = C["roles"][R] extends object ? InferOut<S> : Record<string, never>

Defined in: packages/core/src/contract.ts:137

The typed shape of conn.data for role R (its data schema, or an empty object).

Type Parameters

C

C extends Contract

R

R extends RoleOf<C>

Released under the MIT License.