- Consolidated duplicate UndoManagers to single instance - Fixed connection promise to only resolve on 'connected' status - Fixed WebSocketProvider import (WebsocketProvider) - Added proper doc.destroy() cleanup - Renamed isPresenceInitialized property to avoid conflict Co-Authored-By: Paperclip <noreply@paperclip.ing>
51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
/**
|
|
* 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.
|
|
*
|
|
* @noformat
|
|
* @oncall react_native
|
|
* @generated SignedSource<<c1cd2317d27c079743bc7c0e0fa4b379>>
|
|
*
|
|
* This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
|
|
* Original file: packages/metro-source-map/src/BundleBuilder.js
|
|
* To regenerate, run:
|
|
* js1 build metro-ts-defs (internal) OR
|
|
* yarn run build-ts-defs (OSS)
|
|
*/
|
|
|
|
import type {IndexMap, IndexMapSection, MixedSourceMap} from './source-map';
|
|
/**
|
|
* Builds a source-mapped bundle by concatenating strings and their
|
|
* corresponding source maps (if any).
|
|
*
|
|
* Usage:
|
|
*
|
|
* const builder = new BundleBuilder('bundle.js');
|
|
* builder
|
|
* .append('foo\n', fooMap)
|
|
* .append('bar\n')
|
|
* // ...
|
|
* const code = builder.getCode();
|
|
* const map = builder.getMap();
|
|
*/
|
|
export declare class BundleBuilder {
|
|
_file: string;
|
|
_sections: Array<IndexMapSection>;
|
|
_line: number;
|
|
_column: number;
|
|
_code: string;
|
|
_afterMappedContent: boolean;
|
|
constructor(file: string);
|
|
_pushMapSection(map: MixedSourceMap): void;
|
|
_endMappedContent(): void;
|
|
append(code: string, map: null | undefined | MixedSourceMap): this;
|
|
getMap(): MixedSourceMap;
|
|
getCode(): string;
|
|
}
|
|
export declare function createIndexMap(
|
|
file: string,
|
|
sections: Array<IndexMapSection>,
|
|
): IndexMap;
|