Skip to content

Commit 5e04398

Browse files
gen docs
1 parent ca5fcbb commit 5e04398

File tree

3 files changed

+43
-7
lines changed

3 files changed

+43
-7
lines changed

packages/loader/container-loader/api-report/container-loader.legacy.alpha.api.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,19 @@ export interface ILoadExistingContainerProps extends ICreateAndLoadContainerProp
100100
readonly request: IRequest;
101101
}
102102

103+
// @alpha @legacy
104+
export interface ILoadFrozenContainerFromPendingStateProps {
105+
readonly clientDetailsOverride?: IClientDetails | undefined;
106+
readonly codeLoader: ICodeDetailsLoader_2;
107+
readonly configProvider?: IConfigProviderBase | undefined;
108+
readonly logger?: ITelemetryBaseLogger | undefined;
109+
readonly options?: IContainerPolicies | undefined;
110+
readonly pendingLocalState: string;
111+
readonly request: IRequest;
112+
readonly scope?: FluidObject | undefined;
113+
readonly urlResolver: IUrlResolver;
114+
}
115+
103116
// @beta @legacy
104117
export interface IParsedUrl {
105118
id: string;
@@ -167,6 +180,9 @@ export class Loader implements IHostLoader {
167180
// @beta @legacy
168181
export function loadExistingContainer(loadExistingContainerProps: ILoadExistingContainerProps): Promise<IContainer>;
169182

183+
// @alpha @legacy
184+
export function loadFrozenContainerFromPendingState(props: ILoadFrozenContainerFromPendingStateProps): Promise<IContainer>;
185+
170186
// @beta @legacy
171187
export type ProtocolHandlerBuilder = (attributes: IDocumentAttributes, snapshot: IQuorumSnapshot, sendProposal: (key: string, value: any) => number) => IProtocolHandler;
172188

packages/loader/container-loader/src/createAndLoadContainerUtils.ts

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,27 +176,37 @@ export async function loadExistingContainer(
176176
}
177177

178178
/**
179-
* todo
179+
* Properties required to load a frozen container from pending state.
180180
* @legacy @alpha
181181
*/
182-
export async function loadFrozenContainerFromPendingState(props: {
182+
export interface ILoadFrozenContainerFromPendingStateProps {
183+
/**
184+
* The code loader handles loading the necessary code for running a container once it is loaded.
185+
*/
183186
readonly codeLoader: ICodeDetailsLoader;
187+
188+
/**
189+
* The url resolver used by the loader for resolving external urls into Fluid urls.
190+
*/
184191
readonly urlResolver: IUrlResolver;
192+
193+
/**
194+
* The request to resolve the container.
195+
*/
185196
readonly request: IRequest;
186197

187198
/**
188199
* Pending local state to be applied to the container.
189200
*/
190201
readonly pendingLocalState: string;
202+
191203
/**
192-
* A property bag of options/policies used by various layers
193-
* to control features
204+
* A property bag of options/policies used by various layers to control features.
194205
*/
195206
readonly options?: IContainerPolicies | undefined;
196207

197208
/**
198-
* Scope is provided to all container and is a set of shared
199-
* services for container's to integrate with their host environment.
209+
* Scope is provided to all container and is a set of shared services for container's to integrate with their host environment.
200210
*/
201211
readonly scope?: FluidObject | undefined;
202212

@@ -214,7 +224,16 @@ export async function loadFrozenContainerFromPendingState(props: {
214224
* Client details provided in the override will be merged over the default client.
215225
*/
216226
readonly clientDetailsOverride?: IClientDetails | undefined;
217-
}): Promise<IContainer> {
227+
}
228+
229+
/**
230+
* Loads a frozen container from pending local state.
231+
* @param props - Properties required to load a frozen container from pending state.
232+
* @legacy @alpha
233+
*/
234+
export async function loadFrozenContainerFromPendingState(
235+
props: ILoadFrozenContainerFromPendingStateProps,
236+
): Promise<IContainer> {
218237
return loadExistingContainer({
219238
...props,
220239
documentServiceFactory: new FrozenDocumentServiceFactory(),

packages/loader/container-loader/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export {
1414
type ICreateDetachedContainerProps,
1515
type ILoadExistingContainerProps,
1616
type IRehydrateDetachedContainerProps,
17+
type ILoadFrozenContainerFromPendingStateProps,
1718
} from "./createAndLoadContainerUtils.js";
1819
export {
1920
type ICodeDetailsLoader,

0 commit comments

Comments
 (0)