0.76.3 • Published 1 year ago
@types/metro-source-map v0.76.3
Installation
npm install --save @types/metro-source-map
Summary
This package contains type definitions for metro-source-map (https://github.com/facebook/metro).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/metro-source-map.
index.d.ts
// Type definitions for metro-source-map 0.66
// Project: https://github.com/facebook/metro
// Definitions by: Adam Foxman <https://github.com/afoxman>
// Tommy Nguyen <https://github.com/tido64>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface BasicSourceMap {
readonly file?: string;
readonly mappings: string;
readonly names: string[];
readonly sourceRoot?: string;
readonly sources: string[];
readonly sourcesContent?: Array<string | undefined>;
readonly version: number;
}
export interface IndexMap {
readonly file?: string;
readonly mappings?: unknown;
readonly sourcesContent?: unknown;
readonly sections: IndexMapSection[];
readonly version: number;
}
export interface IndexMapSection {
map: IndexMap | BasicSourceMap;
offset: {
line: number;
column: number;
};
}
export type MixedSourceMap = IndexMap | BasicSourceMap;
export type GeneratedCodeMapping = [number, number];
export type SourceMapping = [number, number, number, number];
export type SourceMappingWithName = [number, number, number, number, string];
export type MetroSourceMapSegmentTuple = SourceMappingWithName | SourceMapping | GeneratedCodeMapping;
export interface FBSourceFunctionMap {
readonly names: ReadonlyArray<string>;
readonly mappings: string;
}
Additional Details
- Last updated: Sun, 07 Nov 2021 19:01:31 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Adam Foxman, and Tommy Nguyen.