Packages > fluid-framework >

InitialObjects

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 LoadableObjectClass<infer TChannel> ? TChannel : never;
};

Type Parameters

Parameter Constraint Description
T ContainerSchema