first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
* @oncall react_native
*/
declare class FailedToResolveNameError extends Error {
dirPaths: ReadonlyArray<string>;
extraPaths: ReadonlyArray<string>;
constructor(dirPaths: ReadonlyArray<string>, extraPaths: ReadonlyArray<string>);
}
export default FailedToResolveNameError;

View File

@@ -0,0 +1 @@
module.exports = require("metro-resolver/private/errors/FailedToResolveNameError");

View File

@@ -0,0 +1,17 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
* @oncall react_native
*/
import type { FileAndDirCandidates } from "../types";
declare class FailedToResolvePathError extends Error {
candidates: FileAndDirCandidates;
constructor(candidates: FileAndDirCandidates);
}
export default FailedToResolvePathError;

View File

@@ -0,0 +1 @@
module.exports = require("metro-resolver/private/errors/FailedToResolvePathError");

View File

@@ -0,0 +1,15 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
* @oncall react_native
*/
declare class FailedToResolveUnsupportedError extends Error {
constructor(message: string);
}
export default FailedToResolveUnsupportedError;

View File

@@ -0,0 +1 @@
module.exports = require("metro-resolver/private/errors/FailedToResolveUnsupportedError");

View File

@@ -0,0 +1,23 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
* @oncall react_native
*/
/**
* Raised when a package contains an invalid `package.json` configuration.
*/
declare class InvalidPackageConfigurationError extends Error {
reason: string;
packagePath: string;
constructor(opts: {
readonly reason: string;
readonly packagePath: string;
});
}
export default InvalidPackageConfigurationError;

View File

@@ -0,0 +1 @@
module.exports = require("metro-resolver/private/errors/InvalidPackageConfigurationError");

View File

@@ -0,0 +1,25 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
* @oncall react_native
*/
import type { FileCandidates } from "../types";
declare class InvalidPackageError extends Error {
fileCandidates: FileCandidates;
indexCandidates: FileCandidates;
mainModulePath: string;
packageJsonPath: string;
constructor(opts: {
readonly fileCandidates: FileCandidates;
readonly indexCandidates: FileCandidates;
readonly mainModulePath: string;
readonly packageJsonPath: string;
});
}
export default InvalidPackageError;

View File

@@ -0,0 +1 @@
module.exports = require("metro-resolver/private/errors/InvalidPackageError");

View File

@@ -0,0 +1,24 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
* @oncall react_native
*/
/**
* Raised when package imports do not define or permit a target subpath in the
* package for the given import specifier.
*/
declare class PackageImportNotResolvedError extends Error {
readonly importSpecifier: string;
readonly reason: string;
constructor(opts: {
readonly importSpecifier: string;
readonly reason: string;
});
}
export default PackageImportNotResolvedError;

View File

@@ -0,0 +1 @@
module.exports = require("metro-resolver/private/errors/PackageImportNotResolvedError");

View File

@@ -0,0 +1,17 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
* @oncall react_native
*/
/**
* Raised when package exports do not define or permit a target subpath in the
* package for the given module.
*/
declare class PackagePathNotExportedError extends Error {}
export default PackagePathNotExportedError;

View File

@@ -0,0 +1 @@
module.exports = require("metro-resolver/private/errors/PackagePathNotExportedError");

View File

@@ -0,0 +1,14 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
* @oncall react_native
*/
import type { FileCandidates } from "../types";
declare function formatFileCandidates(candidates: FileCandidates): string;
export default formatFileCandidates;

View File

@@ -0,0 +1 @@
module.exports = require("metro-resolver/private/errors/formatFileCandidates");