37 lines
812 B
JavaScript
37 lines
812 B
JavaScript
/**
|
|
* 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.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
import type {HintModel} from 'react-server/src/ReactFlightServerConfig';
|
|
import type {ClientReferenceMetadata} from 'ReactFlightDOMRelayServerIntegration';
|
|
|
|
export type JSONValue =
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null
|
|
| {+[key: string]: JSONValue}
|
|
| $ReadOnlyArray<JSONValue>;
|
|
|
|
export type RowEncoding =
|
|
| ['O', number, JSONValue]
|
|
| ['I', number, ClientReferenceMetadata]
|
|
| ['H', string, HintModel]
|
|
| ['P', number, string]
|
|
| ['S', number, string]
|
|
| [
|
|
'E',
|
|
number,
|
|
{
|
|
digest: string,
|
|
message?: string,
|
|
stack?: string,
|
|
...
|
|
},
|
|
];
|