We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4dbeedb + 2f54695 commit b246c48Copy full SHA for b246c48
src/svn.ts
@@ -144,6 +144,8 @@ export class Svn {
144
})
145
]);
146
147
+ jschardet.MacCyrillicModel.mTypicalPositiveRatio += 0.001;
148
+
149
const encodingGuess = jschardet.detect(stdout);
150
151
const encoding =
src/types/jschardet.d.ts
@@ -1,8 +1,15 @@
1
-interface jschardetReturn {
2
- encoding: string;
3
- confidence: number;
4
-}
5
-
6
declare module "jschardet" {
7
- function detect(detect: string): jschardetReturn;
+ export interface IDetectedMap {
+ encoding: string;
+ confidence: number;
+ }
+ export function detect(buffer: NodeBuffer): IDetectedMap;
8
+ export const Constants: {
9
+ MINIMUM_THRESHOLD: number;
10
+ };
11
12
+ export const MacCyrillicModel: {
13
+ mTypicalPositiveRatio: number;
14
15
}
0 commit comments