chore(core): regen native typings (#30633)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> Native typings are out of date. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> native typings are updated ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
This commit is contained in:
parent
da4201b0d1
commit
dbd86480c8
32
packages/nx/src/native/index.d.ts
vendored
32
packages/nx/src/native/index.d.ts
vendored
@ -25,7 +25,7 @@ export declare class FileLock {
|
||||
export declare class HashPlanner {
|
||||
constructor(nxJson: NxJson, projectGraph: ExternalObject<ProjectGraph>)
|
||||
getPlans(taskIds: Array<string>, taskGraph: TaskGraph): Record<string, string[]>
|
||||
getPlansReference(taskIds: Array<string>, taskGraph: TaskGraph): JsExternal
|
||||
getPlansReference(taskIds: Array<string>, taskGraph: TaskGraph): ExternalObject<Record<string, Array<HashInstruction>>>
|
||||
}
|
||||
|
||||
export declare class ImportResult {
|
||||
@ -116,11 +116,11 @@ export interface CachedResult {
|
||||
size?: number
|
||||
}
|
||||
|
||||
export declare export function closeDbConnection(connection: ExternalObject<NxDbConnection>): void
|
||||
export declare export declare function closeDbConnection(connection: ExternalObject<NxDbConnection>): void
|
||||
|
||||
export declare export function connectToNxDb(cacheDir: string, nxVersion: string, dbName?: string | undefined | null): ExternalObject<NxDbConnection>
|
||||
export declare export declare function connectToNxDb(cacheDir: string, nxVersion: string, dbName?: string | undefined | null): ExternalObject<NxDbConnection>
|
||||
|
||||
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<string>): Array<string>
|
||||
export declare export declare function expandOutputs(directory: string, entries: Array<string>): Array<string>
|
||||
|
||||
export interface ExternalDependenciesInput {
|
||||
externalDependencies: Array<string>
|
||||
@ -163,21 +163,21 @@ export interface FileSetInput {
|
||||
fileset: string
|
||||
}
|
||||
|
||||
export declare export function findImports(projectFileMap: Record<string, Array<string>>): Array<ImportResult>
|
||||
export declare export declare function findImports(projectFileMap: Record<string, Array<string>>): Array<ImportResult>
|
||||
|
||||
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<string>): Array<string>
|
||||
export declare export declare function getFilesForOutputs(directory: string, entries: Array<string>): Array<string>
|
||||
|
||||
export declare export function getTransformableOutputs(outputs: Array<string>): Array<string>
|
||||
export declare export declare function getTransformableOutputs(outputs: Array<string>): Array<string>
|
||||
|
||||
export declare export function hashArray(input: Array<string | undefined | null>): string
|
||||
export declare export declare function hashArray(input: Array<string | undefined | null>): 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<string, ExternalNode>
|
||||
}
|
||||
|
||||
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<string, Array<FileData>>, nonProjectFiles: Array<FileData>): NxWorkspaceFilesExternals
|
||||
export declare export declare function testOnlyTransferFileMap(projectFiles: Record<string, Array<FileData>>, nonProjectFiles: Array<FileData>): 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<ProjectGraph>
|
||||
export declare export declare function transferProjectGraph(projectGraph: ProjectGraph): ExternalObject<ProjectGraph>
|
||||
|
||||
export interface UpdatedWorkspaceFiles {
|
||||
fileMap: FileMap
|
||||
externalReferences: NxWorkspaceFilesExternals
|
||||
}
|
||||
|
||||
export declare export function validateOutputs(outputs: Array<string>): void
|
||||
export declare export declare function validateOutputs(outputs: Array<string>): void
|
||||
|
||||
export interface WatchEvent {
|
||||
path: string
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user