file-system-engine-host.d.ts 1.2 KB

123456789101112131415161718192021
  1. import { Observable } from 'rxjs';
  2. import { RuleFactory, TaskExecutor } from '../src';
  3. import { FileSystemCollectionDesc, FileSystemSchematicDesc } from './description';
  4. import { FileSystemEngineHostBase } from './file-system-engine-host-base';
  5. /**
  6. * A simple EngineHost that uses a root with one directory per collection inside of it. The
  7. * collection declaration follows the same rules as the regular FileSystemEngineHostBase.
  8. */
  9. export declare class FileSystemEngineHost extends FileSystemEngineHostBase {
  10. protected _root: string;
  11. constructor(_root: string);
  12. protected _resolveCollectionPath(name: string): string;
  13. protected _resolveReferenceString(refString: string, parentPath: string): {
  14. ref: RuleFactory<{}>;
  15. path: string;
  16. } | null;
  17. protected _transformCollectionDescription(name: string, desc: Partial<FileSystemCollectionDesc>): FileSystemCollectionDesc;
  18. protected _transformSchematicDescription(name: string, _collection: FileSystemCollectionDesc, desc: Partial<FileSystemSchematicDesc>): FileSystemSchematicDesc;
  19. hasTaskExecutor(name: string): boolean;
  20. createTaskExecutor(name: string): Observable<TaskExecutor>;
  21. }