Alan Agius 717b02f533 ci: add ts api guardian (#12010)
* refactor: fix `import` and `export` paths to work with classic resolution

`ts-api-guardian` only support classic module resolution which means that we need to specify `index` so that the resolution works.

* build: add `npm_package` to packages

* build: add ts-api-guardian to repo

* test: add api golden files

* refactor: use proper namespace instead of alias export

* refactor: use proper namspace einstead of alias export

* build: add `_golden_api` files

At the moment ts api guardian doesn't support aliased symbols as namespaces, this is a workaround to still have namespaced symbols in the final golden file.

* build: update angular archive for workspace

* test: fix reference to `TestHost` to use namespace

* refactor: create `fs` namespace instead of aliased export

* test: update api golden file for `@angular-devkit/core/node`
2018-11-30 11:53:54 -08:00

43 lines
1.9 KiB
TypeScript

export declare class NodePackageInstallTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
packageManager?: string;
packageName?: string;
quiet: boolean;
workingDirectory?: string;
constructor(options: Partial<NodePackageInstallTaskOptions>);
constructor(workingDirectory?: string);
toConfiguration(): TaskConfiguration<NodePackageTaskOptions>;
}
export declare class NodePackageLinkTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
packageName?: string | undefined;
quiet: boolean;
workingDirectory?: string | undefined;
constructor(packageName?: string | undefined, workingDirectory?: string | undefined);
toConfiguration(): TaskConfiguration<NodePackageTaskOptions>;
}
export declare class RepositoryInitializerTask implements TaskConfigurationGenerator<RepositoryInitializerTaskOptions> {
commitOptions?: CommitOptions | undefined;
workingDirectory?: string | undefined;
constructor(workingDirectory?: string | undefined, commitOptions?: CommitOptions | undefined);
toConfiguration(): TaskConfiguration<RepositoryInitializerTaskOptions>;
}
export declare class RunSchematicTask<T> implements TaskConfigurationGenerator<RunSchematicTaskOptions<T>> {
protected _collection: string | null;
protected _options: T;
protected _schematic: string;
constructor(c: string, s: string, o: T);
constructor(s: string, o: T);
toConfiguration(): TaskConfiguration<RunSchematicTaskOptions<T>>;
}
export declare class TslintFixTask implements TaskConfigurationGenerator<TslintFixTaskOptions> {
protected _configOrPath: null | string | JsonObject;
protected _options: TslintFixTaskOptionsBase;
constructor(config: JsonObject, options: TslintFixTaskOptionsBase);
constructor(options: TslintFixTaskOptionsBase);
constructor(path: string, options: TslintFixTaskOptionsBase);
toConfiguration(): TaskConfiguration<TslintFixTaskOptions>;
}