microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
smoke-actionbar-timeout-assertion

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/typings/exponent/metroConfig.d.ts

30lines · modepreview

// Type definitions for @expo/metro-config v0.1.54
// Project: https://github.com/expo/expo-cli/tree/master/packages/metro-config

declare namespace metroConfig {
    interface ILoadOptions {
        config?: string;
        maxWorkers?: number;
        port?: number;
        reporter?: Reporter;
        resetCache?: boolean;
        target?: ProjectTarget;
    }

    interface IResolver {
        sourceExts: string[];
    }

    interface IMetroConfig {
        resolver: IResolver;
    }

    var loadAsync: (
        projectRoot: string,
        { reporter, target, ...metroOptions }?: ILoadOptions,
    ) => Promise<IMetroConfig>;
}

declare module "metro-config" {
    export = metroConfig;
}