4
4
5
5
``` ts
6
6
7
+ /// <reference types = " node" />
8
+
7
9
import { EventEmitter } from ' events' ;
8
10
import { IDisposable } from ' @fluidframework/core-interfaces' ;
9
11
import { IEvent } from ' @fluidframework/core-interfaces' ;
@@ -12,13 +14,14 @@ import { IEventTransformer } from '@fluidframework/core-interfaces';
12
14
import { TransformedEvent } from ' @fluidframework/core-interfaces' ;
13
15
14
16
// @internal
15
- export class Buffer extends Uint8Array {
17
+ class Buffer_2 extends Uint8Array {
16
18
static from(value : unknown , encodingOrOffset ? : unknown , length ? : unknown ): IsoBuffer ;
17
19
// (undocumented)
18
- static isBuffer(obj : unknown ): obj is Buffer ;
20
+ static isBuffer(obj : unknown ): obj is Buffer_2 ;
19
21
// (undocumented)
20
22
toString(encoding ? : " utf8" | " utf-8" | " base64" ): string ;
21
23
}
24
+ export { Buffer_2 as Buffer }
22
25
23
26
// @internal
24
27
export const bufferToString: (blob : ArrayBufferLike , encoding : " utf8" | " utf-8" | " base64" ) => string ;
@@ -56,10 +59,10 @@ export function gitHashFile(file: IsoBuffer): Promise<string>;
56
59
export function hashFile(file : IsoBuffer , algorithm ? : " SHA-1" | " SHA-256" , hashEncoding ? : " hex" | " base64" ): Promise <string >;
57
60
58
61
// @internal (undocumented)
59
- export const IsoBuffer: typeof Buffer ;
62
+ export const IsoBuffer: typeof Buffer_2 ;
60
63
61
64
// @internal (undocumented)
62
- export type IsoBuffer = Buffer ;
65
+ export type IsoBuffer = Buffer_2 ;
63
66
64
67
// @internal
65
68
export type IsomorphicPerformance = Partial <Performance > & Pick <Performance , " clearMarks" | " mark" | " measure" | " now" >;
@@ -71,7 +74,7 @@ export interface ITraceEvent {
71
74
readonly totalTimeElapsed: number ;
72
75
}
73
76
74
- // @internal (undocumented)
77
+ // @internal
75
78
const performance_2: IsomorphicPerformance ;
76
79
export { performance_2 as performance }
77
80
0 commit comments