-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd14f5b
commit 12cc15b
Showing
10 changed files
with
748 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,35 @@ | ||
import { Result } from "./result"; | ||
export declare class Ini { | ||
import { Optional } from "./optional"; | ||
export interface StandardIni { | ||
[key: string]: { | ||
[key: string]: string; | ||
}; | ||
constructor(obj: Object); | ||
static from(obj: Object): Result<Ini>; | ||
} | ||
export declare class Toml { | ||
export declare function implStandardIni(obj: any): obj is StandardIni; | ||
export interface ClassicToml { | ||
[key: string]: { | ||
[key: string]: string; | ||
}; | ||
} | ||
export declare function implClassicToml(obj: any): obj is ClassicToml; | ||
export interface CommonToml { | ||
[key: string]: { | ||
[key: string]: number | string | boolean | string[] | number[] | boolean[]; | ||
} | { | ||
[key: string]: { | ||
[key: string]: number | string | boolean | string[] | number[] | boolean[]; | ||
}; | ||
}; | ||
constructor(obj: Object); | ||
static from(obj: Object): Result<Toml>; | ||
} | ||
export declare function arrayType(arr: Array<any>): Optional<'string' | 'number' | 'boolean'>; | ||
export declare function implCommonToml(obj: any): obj is CommonToml; | ||
export declare function commonTomlEveryKey(toml: CommonToml): Generator<Optional<{ | ||
secMain: string; | ||
secSub: Optional<string>; | ||
key: string; | ||
value: string | number | boolean | string[] | number[] | boolean[]; | ||
}>, Optional<{ | ||
secMain: string; | ||
secSub: Optional<string>; | ||
key: string; | ||
value: string | number | boolean | string[] | number[] | boolean[]; | ||
}>, unknown>; |
Oops, something went wrong.