diff options
author | Minteck <contact@minteck.org> | 2021-12-21 15:25:09 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2021-12-21 15:25:09 +0100 |
commit | e703e51c9c09b22e3bcda9a1faf1e05897f60616 (patch) | |
tree | 4fd67a209ad6988fbf569d7dff8bc37ba45baf95 /_mint/node_modules/editorconfig/src/index.d.ts | |
download | mint-e703e51c9c09b22e3bcda9a1faf1e05897f60616.tar.gz mint-e703e51c9c09b22e3bcda9a1faf1e05897f60616.tar.bz2 mint-e703e51c9c09b22e3bcda9a1faf1e05897f60616.zip |
Initial commit
Diffstat (limited to '_mint/node_modules/editorconfig/src/index.d.ts')
-rw-r--r-- | _mint/node_modules/editorconfig/src/index.d.ts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/_mint/node_modules/editorconfig/src/index.d.ts b/_mint/node_modules/editorconfig/src/index.d.ts new file mode 100644 index 0000000..1a69317 --- /dev/null +++ b/_mint/node_modules/editorconfig/src/index.d.ts @@ -0,0 +1,29 @@ +/// <reference types="node" />
+import { parseString, ParseStringResult } from './lib/ini';
+export { parseString };
+export interface KnownProps {
+ end_of_line?: 'lf' | 'crlf' | 'unset';
+ indent_style?: 'tab' | 'space' | 'unset';
+ indent_size?: number | 'tab' | 'unset';
+ insert_final_newline?: true | false | 'unset';
+ tab_width?: number | 'unset';
+ trim_trailing_whitespace?: true | false | 'unset';
+ charset?: string | 'unset';
+}
+export interface ECFile {
+ name: string;
+ contents: string | Buffer;
+}
+export interface FileConfig {
+ name: string;
+ contents: ParseStringResult;
+}
+export interface ParseOptions {
+ config?: string;
+ version?: string;
+ root?: string;
+}
+export declare function parseFromFiles(filepath: string, files: Promise<ECFile[]>, options?: ParseOptions): Promise<KnownProps>;
+export declare function parseFromFilesSync(filepath: string, files: ECFile[], options?: ParseOptions): KnownProps;
+export declare function parse(_filepath: string, _options?: ParseOptions): Promise<KnownProps>;
+export declare function parseSync(_filepath: string, _options?: ParseOptions): KnownProps;
|