mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00

- Add typings for `async_context_frame`, `icu`, and `sea` bindings - Add a few missing exports on other bindings - Add a few missing primordials PR-URL: https://github.com/nodejs/node/pull/59176 Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
18 lines
601 B
TypeScript
18 lines
601 B
TypeScript
export interface ICUBinding {
|
|
Converter: object;
|
|
decode(
|
|
converter: object,
|
|
input: ArrayBufferView | ArrayBuffer | SharedArrayBuffer,
|
|
flags: number,
|
|
fromEncoding: string,
|
|
): string;
|
|
getConverter(label: string, flags: number): object | undefined;
|
|
getStringWidth(value: string, ambiguousAsFullWidth?: boolean, expandEmojiSequence?: boolean): number;
|
|
hasConverter(label: string): boolean;
|
|
icuErrName(status: number): string;
|
|
transcode(
|
|
input: ArrayBufferView | ArrayBuffer | SharedArrayBuffer,
|
|
fromEncoding: string,
|
|
toEncoding: string,
|
|
): Buffer | number;
|
|
}
|