main
js 28 lines 584 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @flow
8 */
9
10 export type StringDecoder = null;
11
12 export function createStringDecoder(): null {
13 return null;
14 }
15
16 export function readPartialStringChunk(
17 decoder: StringDecoder,
18 buffer: Uint8Array,
19 ): string {
20 throw new Error('Not implemented.');
21 }
22
23 export function readFinalStringChunk(
24 decoder: StringDecoder,
25 buffer: Uint8Array,
26 ): string {
27 throw new Error('Not implemented.');
28 }