-
Notifications
You must be signed in to change notification settings - Fork 47.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b28eb6
commit 914e279
Showing
13 changed files
with
132 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
packages/react-transport-dom-relay/src/ReactFlightDOMRelayProtocol.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its 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 {ModuleMetaData} from 'ReactFlightDOMRelayServerIntegration'; | ||
|
||
export type JSONValue = | ||
| string | ||
| number | ||
| boolean | ||
| null | ||
| {+[key: string]: JSONValue} | ||
| Array<JSONValue>; | ||
|
||
export type RowEncoding = | ||
| { | ||
type: 'json', | ||
id: number, | ||
json: JSONValue, | ||
} | ||
| { | ||
type: 'module', | ||
id: number, | ||
json: ModuleMetaData, | ||
} | ||
| { | ||
type: 'error', | ||
id: number, | ||
json: { | ||
message: string, | ||
stack: string, | ||
... | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
packages/react-transport-native-relay/src/ReactFlightNativeRelayProtocol.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its 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 {ModuleMetaData} from 'ReactFlightNativeRelayServerIntegration'; | ||
|
||
export type JSONValue = | ||
| string | ||
| number | ||
| boolean | ||
| null | ||
| {+[key: string]: JSONValue} | ||
| Array<JSONValue>; | ||
|
||
export type RowEncoding = | ||
| { | ||
type: 'json', | ||
id: number, | ||
json: JSONValue, | ||
} | ||
| { | ||
type: 'module', | ||
id: number, | ||
json: ModuleMetaData, | ||
} | ||
| { | ||
type: 'error', | ||
id: number, | ||
json: { | ||
message: string, | ||
stack: string, | ||
... | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.