mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-11 11:34:12 +08:00
18 lines
552 B
TypeScript
18 lines
552 B
TypeScript
// Type definitions for detect-indent 5.0
|
|
// Project: https://github.com/sindresorhus/detect-indent
|
|
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
|
// BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = detectIndent;
|
|
|
|
declare function detectIndent(str: string): detectIndent.IndentInfo;
|
|
|
|
declare namespace detectIndent {
|
|
interface IndentInfo {
|
|
amount: number;
|
|
type: 'tab' | 'space' | null;
|
|
indent: string;
|
|
}
|
|
}
|