NodeBuffer => Buffer

This commit is contained in:
Benjamin Pasero
2018-08-16 07:38:54 +02:00
parent e2b722d262
commit b57003f330
13 changed files with 23 additions and 23 deletions

View File

@@ -9,7 +9,7 @@ import * as jschardet from 'jschardet';
jschardet.Constants.MINIMUM_THRESHOLD = 0.2;
function detectEncodingByBOM(buffer: NodeBuffer): string | null {
function detectEncodingByBOM(buffer: Buffer): string | null {
if (!buffer || buffer.length < 2) {
return null;
}