UNPKG

@react-native/core-cli-utils

Version:
38 lines (30 loc) 809 B
/** * 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. * * @flow strict-local * @format */ import type { Task } from "./types"; declare export function task<R>( order: number, label: string, action: Task<R>["action"] ): Task<R>; declare export const isWindows: $FlowFixMe; declare export const isMacOS: $FlowFixMe; declare export const toPascalCase: (label: string) => string; type PathCheckResult = { found: boolean, dep: string, description: string, }; declare export function isOnPath( dep: string, description: string ): PathCheckResult; declare export function assertDependencies( ...deps: $ReadOnlyArray<ReturnType<typeof isOnPath>> ): void;