next
Version:
The React Framework
8 lines (7 loc) • 453 B
TypeScript
import type { NapiCodeFrameLocation, NapiCodeFrameOptions } from '../../../build/swc/generated-native';
/**
* Renders a code frame showing the location of an error in source code.
* Requires native bindings to be installed — throws otherwise.
*/
export declare function codeFrameColumns(file: string, location: NapiCodeFrameLocation, options?: NapiCodeFrameOptions): string | undefined;
export type { NapiCodeFrameLocation, NapiCodeFrameOptions };