UNPKG

@bacons/expo-metro-runtime

Version:

Tools for making experimental Metro bundler features work

24 lines (23 loc) 689 B
/** * Copyright (c) Evan Bacon. * 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. */ import { StackFrame } from "stacktrace-parser"; export declare type CodeFrame = { content: string; location?: { row: number; column: number; [key: string]: any; }; fileName: string; }; export declare type SymbolicatedStackTrace = { stack: Array<StackFrame>; codeFrame?: CodeFrame; }; declare function symbolicateStackTrace(stack: Array<StackFrame>): Promise<SymbolicatedStackTrace>; export default symbolicateStackTrace;