@@ -13,12 +13,6 @@ export declare class AliasHost<StatsT extends object = {}> extends ResolverHost<
1313 protected _resolve ( path : Path ) : Path ;
1414}
1515
16- export declare class AmbiguousProjectPathException extends BaseException {
17- readonly path : Path ;
18- readonly projects : ReadonlyArray < string > ;
19- constructor ( path : Path , projects : ReadonlyArray < string > ) ;
20- }
21-
2216export interface Analytics {
2317 event ( category : string , action : string , options ?: EventOptions ) : void ;
2418 flush ( ) : Promise < void > ;
@@ -784,14 +778,6 @@ export declare class ProjectDefinitionCollection extends DefinitionCollection<Pr
784778 set ( name : string , value : ProjectDefinition ) : this;
785779}
786780
787- export declare class ProjectNotFoundException extends BaseException {
788- constructor ( name : string ) ;
789- }
790-
791- export declare class ProjectToolNotFoundException extends BaseException {
792- constructor ( name : string ) ;
793- }
794-
795781export interface PromptDefinition {
796782 default ?: string | string [ ] | number | boolean | null ;
797783 id : string ;
@@ -1217,39 +1203,11 @@ export declare type WindowsPath = string & {
12171203 __PRIVATE_DEVKIT_WINDOWS_PATH : void ;
12181204} ;
12191205
1220- export declare class Workspace {
1221- get host ( ) : virtualFs . Host < { } > ;
1222- get newProjectRoot ( ) : string | undefined ;
1223- get root ( ) : Path ;
1224- get version ( ) : number ;
1225- constructor ( _root : Path , _host : virtualFs . Host < { } > , registry ?: schema . CoreSchemaRegistry ) ;
1226- getCli ( ) : WorkspaceTool ;
1227- getDefaultProjectName ( ) : string | null ;
1228- getProject ( projectName : string ) : WorkspaceProject ;
1229- getProjectByPath ( path : Path ) : string | null ;
1230- getProjectCli ( projectName : string ) : WorkspaceTool ;
1231- getProjectSchematics ( projectName : string ) : WorkspaceTool ;
1232- getProjectTargets ( projectName : string ) : WorkspaceTool ;
1233- getSchematics ( ) : WorkspaceTool ;
1234- getTargets ( ) : WorkspaceTool ;
1235- listProjectNames ( ) : string [ ] ;
1236- loadWorkspaceFromHost ( workspacePath : Path ) : Observable < this> ;
1237- loadWorkspaceFromJson ( json : { } ) : Observable < this> ;
1238- validateAgainstSchema < T = { } > ( contentJson : { } , schemaJson : JsonObject ) : Observable < T > ;
1239- protected static _workspaceFileNames : string [ ] ;
1240- static findWorkspaceFile ( host : virtualFs . Host < { } > , path : Path ) : Promise < Path | null > ;
1241- static fromPath ( host : virtualFs . Host < { } > , path : Path , registry : schema . CoreSchemaRegistry ) : Promise < Workspace > ;
1242- }
1243-
12441206export interface WorkspaceDefinition {
12451207 readonly extensions : Record < string , JsonValue | undefined > ;
12461208 readonly projects : ProjectDefinitionCollection ;
12471209}
12481210
1249- export declare class WorkspaceFileNotFoundException extends BaseException {
1250- constructor ( path : Path ) ;
1251- }
1252-
12531211export declare enum WorkspaceFormat {
12541212 JSON = 0
12551213}
@@ -1261,50 +1219,6 @@ export interface WorkspaceHost {
12611219 writeFile ( path : string , data : string ) : Promise < void > ;
12621220}
12631221
1264- export declare class WorkspaceNotYetLoadedException extends BaseException {
1265- constructor ( ) ;
1266- }
1267-
1268- export interface WorkspaceProject {
1269- architect ?: WorkspaceTool ;
1270- cli ?: WorkspaceTool ;
1271- i18n ?: WorkspaceProjectI18n ;
1272- prefix : string ;
1273- projectType : "application" | "library" ;
1274- root : string ;
1275- schematics ?: WorkspaceTool ;
1276- sourceRoot ?: string ;
1277- targets ?: WorkspaceTool ;
1278- }
1279-
1280- export interface WorkspaceProjectI18n {
1281- locales : Record < string , string > ;
1282- sourceLocale ?: string ;
1283- }
1284-
1285- export interface WorkspaceSchema {
1286- $schema ?: string ;
1287- architect ?: WorkspaceTool ;
1288- cli ?: WorkspaceTool ;
1289- defaultProject ?: string ;
1290- newProjectRoot ?: string ;
1291- projects : {
1292- [ k : string ] : WorkspaceProject ;
1293- } ;
1294- schematics ?: WorkspaceTool ;
1295- targets ?: WorkspaceTool ;
1296- version : number ;
1297- }
1298-
1299- export interface WorkspaceTool {
1300- $schema ?: string ;
1301- [ k : string ] : any ;
1302- }
1303-
1304- export declare class WorkspaceToolNotFoundException extends BaseException {
1305- constructor ( name : string ) ;
1306- }
1307-
13081222export declare function writeWorkspace ( workspace : WorkspaceDefinition , host : WorkspaceHost , path ?: string , format ?: WorkspaceFormat ) : Promise < void > ;
13091223
13101224export declare const yellow : ( x : string ) => string ;
0 commit comments