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,19 @@
/**
* 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 { DuplicatesSet } from "../../flow-types";
export declare class DuplicateHasteCandidatesError extends Error {
hasteName: string;
platform: string | null;
supportsNativePlatform: boolean;
duplicatesSet: DuplicatesSet;
constructor(name: string, platform: string, supportsNativePlatform: boolean, duplicatesSet: DuplicatesSet);
}

View File

@@ -0,0 +1,2 @@
module.exports = require("metro-file-map/private/plugins/haste/DuplicateHasteCandidatesError");
module.exports.default = module.exports;

View File

@@ -0,0 +1,16 @@
/**
* 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 { HasteConflict } from "../../flow-types";
export declare class HasteConflictsError extends Error {
constructor(conflicts: ReadonlyArray<HasteConflict>);
getDetailedMessage(pathsRelativeToRoot: null | undefined | string): string;
}

View File

@@ -0,0 +1,2 @@
module.exports = require("metro-file-map/private/plugins/haste/HasteConflictsError");
module.exports.default = module.exports;

View File

@@ -0,0 +1,22 @@
/**
* 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
*/
import type { HasteMapItem } from "../../flow-types";
export interface Conflict {
id: string;
platform?: string | null;
absolutePaths: Array<string>;
type?: "duplicate" | "shadowing";
}
export declare function computeHasteConflicts($$PARAM_0$$: {
readonly duplicates: ReadonlyMap<string, ReadonlyMap<string, ReadonlyMap<string, number>>>;
readonly map: ReadonlyMap<string, HasteMapItem>;
readonly rootDir: string;
}): Array<Conflict>;

View File

@@ -0,0 +1,2 @@
module.exports = require("metro-file-map/private/plugins/haste/computeConflicts");
module.exports.default = module.exports;

View File

@@ -0,0 +1,12 @@
/**
* 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
*
*/
declare function getPlatformExtension(file: string, platforms: ReadonlySet<string>): null | undefined | string;
export default getPlatformExtension;

View File

@@ -0,0 +1 @@
module.exports = require("metro-file-map/private/plugins/haste/getPlatformExtension");