@fluidframework/file-driver 2.0.0-rc.2.0.2 → 2.0.0-rc.3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/api-report/file-driver.api.md +14 -14
- package/dist/fileDeltaStorageService.d.ts +1 -1
- package/dist/fileDeltaStorageService.d.ts.map +1 -1
- package/dist/fileDeltaStorageService.js +4 -4
- package/dist/fileDeltaStorageService.js.map +1 -1
- package/dist/fileDocumentDeltaConnection.d.ts +2 -2
- package/dist/fileDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/fileDocumentDeltaConnection.js +1 -1
- package/dist/fileDocumentDeltaConnection.js.map +1 -1
- package/dist/fileDocumentService.d.ts +1 -1
- package/dist/fileDocumentService.d.ts.map +1 -1
- package/dist/fileDocumentService.js +0 -1
- package/dist/fileDocumentService.js.map +1 -1
- package/dist/fileDocumentServiceFactory.d.ts +1 -1
- package/dist/fileDocumentServiceFactory.d.ts.map +1 -1
- package/dist/fileDocumentServiceFactory.js.map +1 -1
- package/dist/fileDocumentStorageService.d.ts +6 -6
- package/dist/fileDocumentStorageService.d.ts.map +1 -1
- package/dist/fileDocumentStorageService.js +10 -10
- package/dist/fileDocumentStorageService.js.map +1 -1
- package/dist/public.d.ts +12 -0
- package/internal.d.ts +11 -0
- package/lib/fileDeltaStorageService.d.ts +1 -1
- package/lib/fileDeltaStorageService.d.ts.map +1 -1
- package/lib/fileDeltaStorageService.js +2 -2
- package/lib/fileDeltaStorageService.js.map +1 -1
- package/lib/fileDocumentDeltaConnection.d.ts +2 -2
- package/lib/fileDocumentDeltaConnection.d.ts.map +1 -1
- package/lib/fileDocumentDeltaConnection.js +1 -1
- package/lib/fileDocumentDeltaConnection.js.map +1 -1
- package/lib/fileDocumentService.d.ts +1 -1
- package/lib/fileDocumentService.d.ts.map +1 -1
- package/lib/fileDocumentService.js +0 -1
- package/lib/fileDocumentService.js.map +1 -1
- package/lib/fileDocumentServiceFactory.d.ts +1 -1
- package/lib/fileDocumentServiceFactory.d.ts.map +1 -1
- package/lib/fileDocumentServiceFactory.js.map +1 -1
- package/lib/fileDocumentStorageService.d.ts +6 -6
- package/lib/fileDocumentStorageService.d.ts.map +1 -1
- package/lib/fileDocumentStorageService.js +3 -3
- package/lib/fileDocumentStorageService.js.map +1 -1
- package/lib/public.d.ts +12 -0
- package/package.json +26 -43
- package/src/fileDeltaStorageService.ts +4 -3
- package/src/fileDocumentDeltaConnection.ts +3 -2
- package/src/fileDocumentService.ts +3 -2
- package/src/fileDocumentServiceFactory.ts +3 -2
- package/src/fileDocumentStorageService.ts +14 -4
- package/api-extractor-cjs.json +0 -8
- package/dist/file-driver-alpha.d.ts +0 -53
- package/dist/file-driver-beta.d.ts +0 -71
- package/dist/file-driver-public.d.ts +0 -71
- package/dist/file-driver-untrimmed.d.ts +0 -211
- package/lib/file-driver-alpha.d.ts +0 -53
- package/lib/file-driver-beta.d.ts +0 -71
- package/lib/file-driver-public.d.ts +0 -71
- package/lib/file-driver-untrimmed.d.ts +0 -211
- package/lib/test/types/validateFileDriverPrevious.generated.d.ts +0 -2
- package/lib/test/types/validateFileDriverPrevious.generated.d.ts.map +0 -1
- package/lib/test/types/validateFileDriverPrevious.generated.js +0 -26
- package/lib/test/types/validateFileDriverPrevious.generated.js.map +0 -1
- /package/{dist → lib}/tsdoc-metadata.json +0 -0
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import * as api from '@fluidframework/protocol-definitions';
|
|
2
|
-
import { ConnectionMode } from '@fluidframework/protocol-definitions';
|
|
3
|
-
import { IClientConfiguration } from '@fluidframework/protocol-definitions';
|
|
4
|
-
import { IConnected } from '@fluidframework/protocol-definitions';
|
|
5
|
-
import { IDisposable } from '@fluidframework/core-interfaces';
|
|
6
|
-
import { IDocumentDeltaConnection } from '@fluidframework/driver-definitions';
|
|
7
|
-
import { IDocumentDeltaConnectionEvents } from '@fluidframework/driver-definitions';
|
|
8
|
-
import { IDocumentDeltaStorageService } from '@fluidframework/driver-definitions';
|
|
9
|
-
import { IDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
10
|
-
import { IDocumentService } from '@fluidframework/driver-definitions';
|
|
11
|
-
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
12
|
-
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
13
|
-
import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
|
|
14
|
-
import { IFileSnapshot } from '@fluidframework/replay-driver';
|
|
15
|
-
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
16
|
-
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
17
|
-
import { ISignalClient } from '@fluidframework/protocol-definitions';
|
|
18
|
-
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
-
import { ISnapshot } from '@fluidframework/driver-definitions';
|
|
20
|
-
import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
|
|
21
|
-
import { IStream } from '@fluidframework/driver-definitions';
|
|
22
|
-
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
23
|
-
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
24
|
-
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
25
|
-
import { ITokenClaims } from '@fluidframework/protocol-definitions';
|
|
26
|
-
import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
|
|
27
|
-
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Provides access to the underlying delta storage on the local file storage for file driver.
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
export declare class FileDeltaStorageService implements IDocumentDeltaStorageService {
|
|
34
|
-
private readonly path;
|
|
35
|
-
private readonly messages;
|
|
36
|
-
private lastOps;
|
|
37
|
-
constructor(path: string);
|
|
38
|
-
fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean): IStream<api.ISequencedDocumentMessage[]>;
|
|
39
|
-
get ops(): readonly Readonly<api.ISequencedDocumentMessage>[];
|
|
40
|
-
/**
|
|
41
|
-
* Retrieve ops within the exclusive sequence number range.
|
|
42
|
-
*
|
|
43
|
-
* @param from - First op to be fetched.
|
|
44
|
-
* @param to - Last op to be fetched. This is exclusive.
|
|
45
|
-
*/
|
|
46
|
-
getFromWebSocket(from: number, to: number): api.ISequencedDocumentMessage[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Factory for creating the file document service. Use this if you want to
|
|
51
|
-
* use the local file storage as underlying storage.
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
export declare class FileDocumentServiceFactory implements IDocumentServiceFactory {
|
|
55
|
-
private readonly storage;
|
|
56
|
-
private readonly deltaStorage;
|
|
57
|
-
private readonly deltaConnection;
|
|
58
|
-
constructor(storage: IDocumentStorageService, deltaStorage: FileDeltaStorageService, deltaConnection: IDocumentDeltaConnection);
|
|
59
|
-
/**
|
|
60
|
-
* Creates the file document service if the path exists.
|
|
61
|
-
*
|
|
62
|
-
* @param fileURL - Path of directory containing ops/snapshots.
|
|
63
|
-
* @returns file document service.
|
|
64
|
-
*/
|
|
65
|
-
createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
66
|
-
createContainer(createNewSummary: ISummaryTree, resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
|
-
export declare const FileSnapshotWriterClassFactory: <TBase extends ReaderConstructor>(Base: TBase) => {
|
|
73
|
-
new (...args: any[]): {
|
|
74
|
-
blobsWriter: Map<string, ArrayBufferLike>;
|
|
75
|
-
latestWriterTree?: api.ISnapshotTree | undefined;
|
|
76
|
-
docId?: string | undefined;
|
|
77
|
-
reset(): void;
|
|
78
|
-
onSnapshotHandler(snapshot: IFileSnapshot): void;
|
|
79
|
-
readBlob(sha: string): Promise<ArrayBufferLike>;
|
|
80
|
-
getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
|
|
81
|
-
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
82
|
-
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
83
|
-
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
84
|
-
readonly policies?: IDocumentStorageServicePolicies | undefined;
|
|
85
|
-
getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
|
|
86
|
-
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
87
|
-
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
88
|
-
readonly disposed?: boolean | undefined;
|
|
89
|
-
dispose?: ((error?: Error | undefined) => void) | undefined;
|
|
90
|
-
};
|
|
91
|
-
} & TBase;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
|
-
export declare const FileStorageDocumentName = "FileStorageDocId";
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Document storage service for the file driver.
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
|
-
export declare class FluidFetchReader extends ReadDocumentStorageServiceBase implements IDocumentStorageService {
|
|
103
|
-
private readonly path;
|
|
104
|
-
private readonly versionName?;
|
|
105
|
-
protected docTree: api.ISnapshotTree | null;
|
|
106
|
-
constructor(path: string, versionName?: string | undefined);
|
|
107
|
-
/**
|
|
108
|
-
* Read the file and returns the snapshot tree.
|
|
109
|
-
* @param version - The version contains the path of the file which contains the snapshot tree.
|
|
110
|
-
*/
|
|
111
|
-
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
112
|
-
/**
|
|
113
|
-
* Gets the path of the snapshot tree to be read.
|
|
114
|
-
* @param versionId - version ID.
|
|
115
|
-
* @param count - Number of versions to be returned.
|
|
116
|
-
*/
|
|
117
|
-
getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
|
|
118
|
-
readBlob(sha: string): Promise<ArrayBufferLike>;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @internal
|
|
123
|
-
*/
|
|
124
|
-
export declare const FluidFetchReaderFileSnapshotWriter: {
|
|
125
|
-
new (...args: any[]): {
|
|
126
|
-
blobsWriter: Map<string, ArrayBufferLike>;
|
|
127
|
-
latestWriterTree?: api.ISnapshotTree | undefined;
|
|
128
|
-
docId?: string | undefined;
|
|
129
|
-
reset(): void;
|
|
130
|
-
onSnapshotHandler(snapshot: IFileSnapshot): void;
|
|
131
|
-
readBlob(sha: string): Promise<ArrayBufferLike>;
|
|
132
|
-
getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
|
|
133
|
-
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
134
|
-
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
135
|
-
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
136
|
-
readonly policies?: IDocumentStorageServicePolicies | undefined;
|
|
137
|
-
getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
|
|
138
|
-
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
139
|
-
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
140
|
-
readonly disposed?: boolean | undefined;
|
|
141
|
-
dispose?: ((error?: Error | undefined) => void) | undefined;
|
|
142
|
-
};
|
|
143
|
-
} & typeof FluidFetchReader;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* @internal
|
|
147
|
-
*/
|
|
148
|
-
export declare interface ISnapshotWriterStorage extends IDocumentStorageService {
|
|
149
|
-
onSnapshotHandler(snapshot: IFileSnapshot): void;
|
|
150
|
-
reset(): void;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @internal
|
|
155
|
-
*/
|
|
156
|
-
export declare type ReaderConstructor = new (...args: any[]) => IDocumentStorageService;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Replay service used to play ops using the delta connection.
|
|
160
|
-
* @internal
|
|
161
|
-
*/
|
|
162
|
-
export declare class Replayer {
|
|
163
|
-
private readonly deltaConnection;
|
|
164
|
-
private readonly documentStorageService;
|
|
165
|
-
private currentReplayOp;
|
|
166
|
-
constructor(deltaConnection: ReplayFileDeltaConnection, documentStorageService: FileDeltaStorageService);
|
|
167
|
-
get currentReplayedOp(): number;
|
|
168
|
-
set currentReplayedOp(op: number);
|
|
169
|
-
get ops(): readonly Readonly<ISequencedDocumentMessage>[];
|
|
170
|
-
/**
|
|
171
|
-
* Replay the ops upto a certain number.
|
|
172
|
-
* @param replayTo - The last op number to be replayed.
|
|
173
|
-
*/
|
|
174
|
-
replay(replayTo: number): number;
|
|
175
|
-
private isDoneFetch;
|
|
176
|
-
private emit;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* @internal
|
|
181
|
-
*/
|
|
182
|
-
export declare class ReplayFileDeltaConnection extends TypedEventEmitter<IDocumentDeltaConnectionEvents> implements IDocumentDeltaConnection, IDisposable {
|
|
183
|
-
details: IConnected;
|
|
184
|
-
/**
|
|
185
|
-
* Mimic the delta connection to replay ops on it.
|
|
186
|
-
*
|
|
187
|
-
* @param documentDeltaStorageService - The delta storage service to get ops from.
|
|
188
|
-
* @returns Document delta connection.
|
|
189
|
-
*/
|
|
190
|
-
static create(documentDeltaStorageService: FileDeltaStorageService): Promise<ReplayFileDeltaConnection>;
|
|
191
|
-
readonly maxMessageSize: number;
|
|
192
|
-
private readonly replayer;
|
|
193
|
-
constructor(details: IConnected, documentDeltaStorageService: FileDeltaStorageService);
|
|
194
|
-
getReplayer(): Replayer;
|
|
195
|
-
get clientId(): string;
|
|
196
|
-
get mode(): ConnectionMode;
|
|
197
|
-
get claims(): ITokenClaims;
|
|
198
|
-
get existing(): boolean;
|
|
199
|
-
get version(): string;
|
|
200
|
-
get initialMessages(): ISequencedDocumentMessage[];
|
|
201
|
-
get initialSignals(): ISignalMessage[];
|
|
202
|
-
get initialClients(): ISignalClient[];
|
|
203
|
-
get serviceConfiguration(): IClientConfiguration;
|
|
204
|
-
submit(documentMessages: IDocumentMessage[]): void;
|
|
205
|
-
submitSignal(message: any): Promise<void>;
|
|
206
|
-
private _disposed;
|
|
207
|
-
get disposed(): boolean;
|
|
208
|
-
dispose(): void;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export { }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validateFileDriverPrevious.generated.d.ts","sourceRoot":"","sources":["../../../src/test/types/validateFileDriverPrevious.generated.ts"],"names":[],"mappings":""}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
use_current_ClassDeclaration_FileDeltaStorageService(get_old_ClassDeclaration_FileDeltaStorageService());
|
|
2
|
-
use_old_ClassDeclaration_FileDeltaStorageService(get_current_ClassDeclaration_FileDeltaStorageService());
|
|
3
|
-
use_current_ClassDeclaration_FileDocumentServiceFactory(get_old_ClassDeclaration_FileDocumentServiceFactory());
|
|
4
|
-
use_old_ClassDeclaration_FileDocumentServiceFactory(get_current_ClassDeclaration_FileDocumentServiceFactory());
|
|
5
|
-
use_current_VariableDeclaration_FileSnapshotWriterClassFactory(get_old_VariableDeclaration_FileSnapshotWriterClassFactory());
|
|
6
|
-
use_old_VariableDeclaration_FileSnapshotWriterClassFactory(get_current_VariableDeclaration_FileSnapshotWriterClassFactory());
|
|
7
|
-
use_current_VariableDeclaration_FileStorageDocumentName(get_old_VariableDeclaration_FileStorageDocumentName());
|
|
8
|
-
use_old_VariableDeclaration_FileStorageDocumentName(get_current_VariableDeclaration_FileStorageDocumentName());
|
|
9
|
-
use_current_ClassDeclaration_FluidFetchReader(get_old_ClassDeclaration_FluidFetchReader());
|
|
10
|
-
use_old_ClassDeclaration_FluidFetchReader(
|
|
11
|
-
// @ts-expect-error compatibility expected to be broken
|
|
12
|
-
get_current_ClassDeclaration_FluidFetchReader());
|
|
13
|
-
use_current_VariableDeclaration_FluidFetchReaderFileSnapshotWriter(get_old_VariableDeclaration_FluidFetchReaderFileSnapshotWriter());
|
|
14
|
-
use_old_VariableDeclaration_FluidFetchReaderFileSnapshotWriter(get_current_VariableDeclaration_FluidFetchReaderFileSnapshotWriter());
|
|
15
|
-
use_current_InterfaceDeclaration_ISnapshotWriterStorage(get_old_InterfaceDeclaration_ISnapshotWriterStorage());
|
|
16
|
-
use_old_InterfaceDeclaration_ISnapshotWriterStorage(
|
|
17
|
-
// @ts-expect-error compatibility expected to be broken
|
|
18
|
-
get_current_InterfaceDeclaration_ISnapshotWriterStorage());
|
|
19
|
-
use_current_TypeAliasDeclaration_ReaderConstructor(get_old_TypeAliasDeclaration_ReaderConstructor());
|
|
20
|
-
use_old_TypeAliasDeclaration_ReaderConstructor(get_current_TypeAliasDeclaration_ReaderConstructor());
|
|
21
|
-
use_current_ClassDeclaration_ReplayFileDeltaConnection(get_old_ClassDeclaration_ReplayFileDeltaConnection());
|
|
22
|
-
use_old_ClassDeclaration_ReplayFileDeltaConnection(get_current_ClassDeclaration_ReplayFileDeltaConnection());
|
|
23
|
-
use_current_ClassDeclaration_Replayer(get_old_ClassDeclaration_Replayer());
|
|
24
|
-
use_old_ClassDeclaration_Replayer(get_current_ClassDeclaration_Replayer());
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=validateFileDriverPrevious.generated.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validateFileDriverPrevious.generated.js","sourceRoot":"","sources":["../../../src/test/types/validateFileDriverPrevious.generated.ts"],"names":[],"mappings":"AAgCA,oDAAoD,CAChD,gDAAgD,EAAE,CAAC,CAAC;AAWxD,gDAAgD,CAC5C,oDAAoD,EAAE,CAAC,CAAC;AAW5D,uDAAuD,CACnD,mDAAmD,EAAE,CAAC,CAAC;AAW3D,mDAAmD,CAC/C,uDAAuD,EAAE,CAAC,CAAC;AAW/D,8DAA8D,CAC1D,0DAA0D,EAAE,CAAC,CAAC;AAWlE,0DAA0D,CACtD,8DAA8D,EAAE,CAAC,CAAC;AAWtE,uDAAuD,CACnD,mDAAmD,EAAE,CAAC,CAAC;AAW3D,mDAAmD,CAC/C,uDAAuD,EAAE,CAAC,CAAC;AAW/D,6CAA6C,CACzC,yCAAyC,EAAE,CAAC,CAAC;AAWjD,yCAAyC;AACrC,uDAAuD;AACvD,6CAA6C,EAAE,CAAC,CAAC;AAWrD,kEAAkE,CAC9D,8DAA8D,EAAE,CAAC,CAAC;AAWtE,8DAA8D,CAC1D,kEAAkE,EAAE,CAAC,CAAC;AAW1E,uDAAuD,CACnD,mDAAmD,EAAE,CAAC,CAAC;AAW3D,mDAAmD;AAC/C,uDAAuD;AACvD,uDAAuD,EAAE,CAAC,CAAC;AAW/D,kDAAkD,CAC9C,8CAA8C,EAAE,CAAC,CAAC;AAWtD,8CAA8C,CAC1C,kDAAkD,EAAE,CAAC,CAAC;AAW1D,sDAAsD,CAClD,kDAAkD,EAAE,CAAC,CAAC;AAW1D,kDAAkD,CAC9C,sDAAsD,EAAE,CAAC,CAAC;AAW9D,qCAAqC,CACjC,iCAAiC,EAAE,CAAC,CAAC;AAWzC,iCAAiC,CAC7B,qCAAqC,EAAE,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/*\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.\n * Generated by fluid-type-test-generator in @fluidframework/build-tools.\n */\nimport type * as old from \"@fluidframework/file-driver-previous\";\nimport type * as current from \"../../index.js\";\n\n\n// See 'build-tools/src/type-test-generator/compatibility.ts' for more information.\ntype TypeOnly<T> = T extends number\n\t? number\n\t: T extends string\n\t? string\n\t: T extends boolean | bigint | symbol\n\t? T\n\t: {\n\t\t\t[P in keyof T]: TypeOnly<T[P]>;\n\t };\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_FileDeltaStorageService\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_FileDeltaStorageService():\n TypeOnly<old.FileDeltaStorageService>;\ndeclare function use_current_ClassDeclaration_FileDeltaStorageService(\n use: TypeOnly<current.FileDeltaStorageService>): void;\nuse_current_ClassDeclaration_FileDeltaStorageService(\n get_old_ClassDeclaration_FileDeltaStorageService());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_FileDeltaStorageService\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_FileDeltaStorageService():\n TypeOnly<current.FileDeltaStorageService>;\ndeclare function use_old_ClassDeclaration_FileDeltaStorageService(\n use: TypeOnly<old.FileDeltaStorageService>): void;\nuse_old_ClassDeclaration_FileDeltaStorageService(\n get_current_ClassDeclaration_FileDeltaStorageService());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_FileDocumentServiceFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_FileDocumentServiceFactory():\n TypeOnly<old.FileDocumentServiceFactory>;\ndeclare function use_current_ClassDeclaration_FileDocumentServiceFactory(\n use: TypeOnly<current.FileDocumentServiceFactory>): void;\nuse_current_ClassDeclaration_FileDocumentServiceFactory(\n get_old_ClassDeclaration_FileDocumentServiceFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_FileDocumentServiceFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_FileDocumentServiceFactory():\n TypeOnly<current.FileDocumentServiceFactory>;\ndeclare function use_old_ClassDeclaration_FileDocumentServiceFactory(\n use: TypeOnly<old.FileDocumentServiceFactory>): void;\nuse_old_ClassDeclaration_FileDocumentServiceFactory(\n get_current_ClassDeclaration_FileDocumentServiceFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_FileSnapshotWriterClassFactory\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_VariableDeclaration_FileSnapshotWriterClassFactory():\n TypeOnly<typeof old.FileSnapshotWriterClassFactory>;\ndeclare function use_current_VariableDeclaration_FileSnapshotWriterClassFactory(\n use: TypeOnly<typeof current.FileSnapshotWriterClassFactory>): void;\nuse_current_VariableDeclaration_FileSnapshotWriterClassFactory(\n get_old_VariableDeclaration_FileSnapshotWriterClassFactory());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_FileSnapshotWriterClassFactory\": {\"backCompat\": false}\n*/\ndeclare function get_current_VariableDeclaration_FileSnapshotWriterClassFactory():\n TypeOnly<typeof current.FileSnapshotWriterClassFactory>;\ndeclare function use_old_VariableDeclaration_FileSnapshotWriterClassFactory(\n use: TypeOnly<typeof old.FileSnapshotWriterClassFactory>): void;\nuse_old_VariableDeclaration_FileSnapshotWriterClassFactory(\n get_current_VariableDeclaration_FileSnapshotWriterClassFactory());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_FileStorageDocumentName\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_VariableDeclaration_FileStorageDocumentName():\n TypeOnly<typeof old.FileStorageDocumentName>;\ndeclare function use_current_VariableDeclaration_FileStorageDocumentName(\n use: TypeOnly<typeof current.FileStorageDocumentName>): void;\nuse_current_VariableDeclaration_FileStorageDocumentName(\n get_old_VariableDeclaration_FileStorageDocumentName());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_FileStorageDocumentName\": {\"backCompat\": false}\n*/\ndeclare function get_current_VariableDeclaration_FileStorageDocumentName():\n TypeOnly<typeof current.FileStorageDocumentName>;\ndeclare function use_old_VariableDeclaration_FileStorageDocumentName(\n use: TypeOnly<typeof old.FileStorageDocumentName>): void;\nuse_old_VariableDeclaration_FileStorageDocumentName(\n get_current_VariableDeclaration_FileStorageDocumentName());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_FluidFetchReader\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_FluidFetchReader():\n TypeOnly<old.FluidFetchReader>;\ndeclare function use_current_ClassDeclaration_FluidFetchReader(\n use: TypeOnly<current.FluidFetchReader>): void;\nuse_current_ClassDeclaration_FluidFetchReader(\n get_old_ClassDeclaration_FluidFetchReader());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_FluidFetchReader\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_FluidFetchReader():\n TypeOnly<current.FluidFetchReader>;\ndeclare function use_old_ClassDeclaration_FluidFetchReader(\n use: TypeOnly<old.FluidFetchReader>): void;\nuse_old_ClassDeclaration_FluidFetchReader(\n // @ts-expect-error compatibility expected to be broken\n get_current_ClassDeclaration_FluidFetchReader());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_FluidFetchReaderFileSnapshotWriter\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_VariableDeclaration_FluidFetchReaderFileSnapshotWriter():\n TypeOnly<typeof old.FluidFetchReaderFileSnapshotWriter>;\ndeclare function use_current_VariableDeclaration_FluidFetchReaderFileSnapshotWriter(\n use: TypeOnly<typeof current.FluidFetchReaderFileSnapshotWriter>): void;\nuse_current_VariableDeclaration_FluidFetchReaderFileSnapshotWriter(\n get_old_VariableDeclaration_FluidFetchReaderFileSnapshotWriter());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"VariableDeclaration_FluidFetchReaderFileSnapshotWriter\": {\"backCompat\": false}\n*/\ndeclare function get_current_VariableDeclaration_FluidFetchReaderFileSnapshotWriter():\n TypeOnly<typeof current.FluidFetchReaderFileSnapshotWriter>;\ndeclare function use_old_VariableDeclaration_FluidFetchReaderFileSnapshotWriter(\n use: TypeOnly<typeof old.FluidFetchReaderFileSnapshotWriter>): void;\nuse_old_VariableDeclaration_FluidFetchReaderFileSnapshotWriter(\n get_current_VariableDeclaration_FluidFetchReaderFileSnapshotWriter());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_ISnapshotWriterStorage\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_InterfaceDeclaration_ISnapshotWriterStorage():\n TypeOnly<old.ISnapshotWriterStorage>;\ndeclare function use_current_InterfaceDeclaration_ISnapshotWriterStorage(\n use: TypeOnly<current.ISnapshotWriterStorage>): void;\nuse_current_InterfaceDeclaration_ISnapshotWriterStorage(\n get_old_InterfaceDeclaration_ISnapshotWriterStorage());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"InterfaceDeclaration_ISnapshotWriterStorage\": {\"backCompat\": false}\n*/\ndeclare function get_current_InterfaceDeclaration_ISnapshotWriterStorage():\n TypeOnly<current.ISnapshotWriterStorage>;\ndeclare function use_old_InterfaceDeclaration_ISnapshotWriterStorage(\n use: TypeOnly<old.ISnapshotWriterStorage>): void;\nuse_old_InterfaceDeclaration_ISnapshotWriterStorage(\n // @ts-expect-error compatibility expected to be broken\n get_current_InterfaceDeclaration_ISnapshotWriterStorage());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"TypeAliasDeclaration_ReaderConstructor\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_TypeAliasDeclaration_ReaderConstructor():\n TypeOnly<old.ReaderConstructor>;\ndeclare function use_current_TypeAliasDeclaration_ReaderConstructor(\n use: TypeOnly<current.ReaderConstructor>): void;\nuse_current_TypeAliasDeclaration_ReaderConstructor(\n get_old_TypeAliasDeclaration_ReaderConstructor());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"TypeAliasDeclaration_ReaderConstructor\": {\"backCompat\": false}\n*/\ndeclare function get_current_TypeAliasDeclaration_ReaderConstructor():\n TypeOnly<current.ReaderConstructor>;\ndeclare function use_old_TypeAliasDeclaration_ReaderConstructor(\n use: TypeOnly<old.ReaderConstructor>): void;\nuse_old_TypeAliasDeclaration_ReaderConstructor(\n get_current_TypeAliasDeclaration_ReaderConstructor());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_ReplayFileDeltaConnection\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_ReplayFileDeltaConnection():\n TypeOnly<old.ReplayFileDeltaConnection>;\ndeclare function use_current_ClassDeclaration_ReplayFileDeltaConnection(\n use: TypeOnly<current.ReplayFileDeltaConnection>): void;\nuse_current_ClassDeclaration_ReplayFileDeltaConnection(\n get_old_ClassDeclaration_ReplayFileDeltaConnection());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_ReplayFileDeltaConnection\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_ReplayFileDeltaConnection():\n TypeOnly<current.ReplayFileDeltaConnection>;\ndeclare function use_old_ClassDeclaration_ReplayFileDeltaConnection(\n use: TypeOnly<old.ReplayFileDeltaConnection>): void;\nuse_old_ClassDeclaration_ReplayFileDeltaConnection(\n get_current_ClassDeclaration_ReplayFileDeltaConnection());\n\n/*\n* Validate forward compat by using old type in place of current type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_Replayer\": {\"forwardCompat\": false}\n*/\ndeclare function get_old_ClassDeclaration_Replayer():\n TypeOnly<old.Replayer>;\ndeclare function use_current_ClassDeclaration_Replayer(\n use: TypeOnly<current.Replayer>): void;\nuse_current_ClassDeclaration_Replayer(\n get_old_ClassDeclaration_Replayer());\n\n/*\n* Validate back compat by using current type in place of old type\n* If breaking change required, add in package.json under typeValidation.broken:\n* \"ClassDeclaration_Replayer\": {\"backCompat\": false}\n*/\ndeclare function get_current_ClassDeclaration_Replayer():\n TypeOnly<current.Replayer>;\ndeclare function use_old_ClassDeclaration_Replayer(\n use: TypeOnly<old.Replayer>): void;\nuse_old_ClassDeclaration_Replayer(\n get_current_ClassDeclaration_Replayer());\n"]}
|
|
File without changes
|