diff --git a/packages/nx/src/native/index.d.ts b/packages/nx/src/native/index.d.ts index d1e5aa1629..3bd532cffd 100644 --- a/packages/nx/src/native/index.d.ts +++ b/packages/nx/src/native/index.d.ts @@ -25,7 +25,7 @@ export declare class FileLock { export declare class HashPlanner { constructor(nxJson: NxJson, projectGraph: ExternalObject) getPlans(taskIds: Array, taskGraph: TaskGraph): Record - getPlansReference(taskIds: Array, taskGraph: TaskGraph): JsExternal + getPlansReference(taskIds: Array, taskGraph: TaskGraph): ExternalObject>> } export declare class ImportResult { @@ -116,11 +116,11 @@ export interface CachedResult { size?: number } -export declare export function closeDbConnection(connection: ExternalObject): void +export declare export declare function closeDbConnection(connection: ExternalObject): void -export declare export function connectToNxDb(cacheDir: string, nxVersion: string, dbName?: string | undefined | null): ExternalObject +export declare export declare function connectToNxDb(cacheDir: string, nxVersion: string, dbName?: string | undefined | null): ExternalObject -export declare export function copy(src: string, dest: string): number +export declare export declare function copy(src: string, dest: string): number export interface DepsOutputsInput { dependentTasksOutputFiles: string @@ -137,7 +137,7 @@ export declare const enum EventType { create = 'create' } -export declare export function expandOutputs(directory: string, entries: Array): Array +export declare export declare function expandOutputs(directory: string, entries: Array): Array export interface ExternalDependenciesInput { externalDependencies: Array @@ -163,21 +163,21 @@ export interface FileSetInput { fileset: string } -export declare export function findImports(projectFileMap: Record>): Array +export declare export declare function findImports(projectFileMap: Record>): Array -export declare export function getBinaryTarget(): string +export declare export declare function getBinaryTarget(): string -export declare export function getDefaultMaxCacheSize(cachePath: string): number +export declare export declare function getDefaultMaxCacheSize(cachePath: string): number /** * Expands the given outputs into a list of existing files. * This is used when hashing outputs */ -export declare export function getFilesForOutputs(directory: string, entries: Array): Array +export declare export declare function getFilesForOutputs(directory: string, entries: Array): Array -export declare export function getTransformableOutputs(outputs: Array): Array +export declare export declare function getTransformableOutputs(outputs: Array): Array -export declare export function hashArray(input: Array): string +export declare export declare function hashArray(input: Array): string export interface HashDetails { value: string @@ -195,7 +195,7 @@ export interface HasherOptions { selectivelyHashTsConfig: boolean } -export declare export function hashFile(file: string): string | null +export declare export declare function hashFile(file: string): string | null export interface InputsInput { input: string @@ -235,7 +235,7 @@ export interface ProjectGraph { externalNodes: Record } -export declare export function remove(src: string): void +export declare export declare function remove(src: string): void export interface RuntimeInput { runtime: string @@ -277,20 +277,20 @@ export interface TaskTarget { configuration?: string } -export declare export function testOnlyTransferFileMap(projectFiles: Record>, nonProjectFiles: Array): NxWorkspaceFilesExternals +export declare export declare function testOnlyTransferFileMap(projectFiles: Record>, nonProjectFiles: Array): NxWorkspaceFilesExternals /** * Transfer the project graph from the JS world to the Rust world, so that we can pass the project graph via memory quicker * This wont be needed once the project graph is created in Rust */ -export declare export function transferProjectGraph(projectGraph: ProjectGraph): ExternalObject +export declare export declare function transferProjectGraph(projectGraph: ProjectGraph): ExternalObject export interface UpdatedWorkspaceFiles { fileMap: FileMap externalReferences: NxWorkspaceFilesExternals } -export declare export function validateOutputs(outputs: Array): void +export declare export declare function validateOutputs(outputs: Array): void export interface WatchEvent { path: string