mirror of
https://github.com/github/codeql-action.git
synced 2025-12-28 02:00:12 +08:00
14 lines
395 B
TypeScript
14 lines
395 B
TypeScript
export interface IDetectedMap {
|
|
encoding: string,
|
|
confidence: number
|
|
}
|
|
export interface IOptionsMap {
|
|
minimumThreshold?: number,
|
|
detectEncodings?: Array<string>
|
|
}
|
|
export function detect(buffer: Buffer | string, options?: IOptionsMap): IDetectedMap;
|
|
|
|
export function detectAll(buffer: Buffer | string, options?: IOptionsMap): IDetectedMap[];
|
|
|
|
export function enableDebug(): void;
|