@interactive-inc/docs-client 1.0.10 → 1.0.11
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/build/index.d.ts +8 -5
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1456,6 +1456,11 @@ declare class DocFileIndexReference<T extends DocCustomSchema> {
|
|
|
1456
1456
|
restore(archiveDirectoryName?: string): Promise<DocFileIndexReference<T>>;
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
|
+
type DocFileDirectoryReference<T extends DocCustomSchema> = DocFileMdReference<T> | DocFileUnknownReference;
|
|
1460
|
+
|
|
1461
|
+
type DocFileEntity<T extends DocCustomSchema> = DocFileMdEntity<T> | DocFileIndexEntity<T> | DocFileUnknownEntity;
|
|
1462
|
+
type DocFileDirectoryEntity<T extends DocCustomSchema> = DocFileMdEntity<T> | DocFileUnknownEntity;
|
|
1463
|
+
|
|
1459
1464
|
type Props$4<T extends DocCustomSchema> = {
|
|
1460
1465
|
customSchema: T;
|
|
1461
1466
|
path: string;
|
|
@@ -1483,13 +1488,13 @@ declare class DocDirectoryReference<T extends DocCustomSchema> {
|
|
|
1483
1488
|
get archiveDirectoryName(): string;
|
|
1484
1489
|
fileNames(): Promise<string[] | Error>;
|
|
1485
1490
|
archivedFileNames(): Promise<string[] | Error>;
|
|
1486
|
-
filesGenerator(): AsyncGenerator<
|
|
1491
|
+
filesGenerator(): AsyncGenerator<DocFileDirectoryReference<T>, void, unknown>;
|
|
1487
1492
|
mdFilesGenerator(): AsyncGenerator<DocFileMdReference<T> | Error, void, unknown>;
|
|
1488
|
-
files(): Promise<
|
|
1493
|
+
files(): Promise<DocFileDirectoryReference<T>[]>;
|
|
1489
1494
|
mdFiles(): Promise<DocFileMdReference<T>[]>;
|
|
1490
1495
|
file<FileName extends string>(fileName: FileName): InferReference<FileName, T>;
|
|
1491
1496
|
mdFile(fileName: string): DocFileMdReference<T>;
|
|
1492
|
-
readFiles(): Promise<
|
|
1497
|
+
readFiles(): Promise<DocFileDirectoryEntity<T>[]>;
|
|
1493
1498
|
readMdFiles(): Promise<DocFileMdEntity<T>[]>;
|
|
1494
1499
|
readUnknownFiles(): Promise<DocFileUnknownEntity[]>;
|
|
1495
1500
|
/**
|
|
@@ -1876,8 +1881,6 @@ declare class DocSchemaBuilder<T extends DocCustomSchema> {
|
|
|
1876
1881
|
build(): T;
|
|
1877
1882
|
}
|
|
1878
1883
|
|
|
1879
|
-
type DocFileEntity<T extends DocCustomSchema> = DocFileMdEntity<T> | DocFileIndexEntity<T> | DocFileUnknownEntity;
|
|
1880
|
-
|
|
1881
1884
|
/**
|
|
1882
1885
|
* Function that only performs type checking (does nothing at runtime)
|
|
1883
1886
|
*/
|