Blame view

node_modules/editorconfig/lib/ini.d.ts 603 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  /// <reference types="node" />
  import { URL } from 'url';
  /**
   * Parses an .ini file
   * @param file The location of the .ini file
   */
  export declare function parse(file: string | number | Buffer | URL): Promise<[string | null, SectionBody][]>;
  export declare function parseSync(file: string | number | Buffer | URL): [string | null, SectionBody][];
  export declare type SectionName = string | null;
  export interface SectionBody {
      [key: string]: string;
  }
  export declare type ParseStringResult = Array<[SectionName, SectionBody]>;
  export declare function parseString(data: string): ParseStringResult;