Skip to main content

InitialObjects TypeAlias

Extract the type of 'initialObjects' from the given ContainerSchema type.

Signature

export type InitialObjects<T extends ContainerSchema> = {
[K in keyof T["initialObjects"]]: T["initialObjects"][K] extends SharedObjectKind<infer TChannel> ? TChannel : never;
};

Type Parameters

Parameter Constraint Description
T ContainerSchema