@gulujs/toml
Version:
TOML parser and serializer
22 lines (21 loc) • 2.04 kB
TypeScript
import { DecodedPath } from '@gulujs/object-path';
import { Source } from '../parser/index.js';
import { Key } from '../serializer/index.js';
export declare const PRETTY_ERROR_MESSAGE: (message: string, source: Source, offset: number) => string;
export declare const SYNTAX_ERROR_MESSAGE: (source: Source, offset: number) => string;
export declare const INVALID_CHARACTER_MESSAGE: (source: Source, offset: number) => string;
export declare const INVALID_INTEGER_MESSAGE: (integer: string) => string;
export declare const INVALID_DATETIME_MESSAGE: (datetime: string) => string;
export declare const INVALID_TIME_MESSAGE: (time: string) => string;
export declare const INVALID_ESCAPE_CODES_MESSAGE: (code: string, source: Source, offset: number) => string;
export declare const DUPLICATE_KEY_MESSAGE: (path: string[], tablePath: string[] | null, isTableArray: boolean) => string;
export declare const DUPLICATE_TABLE_NAME_MESSAGE: (path: string[]) => string;
export declare const TABLE_NAME_IS_ALREADY_DECLARED_AS_NON_TABLE_MESSAGE: (path: string[], index: number, isArrayTable?: boolean) => string;
export declare const TABLE_NAME_IS_DECLARED_AS_ARRAY_OF_TABLES_MESSAGE: (path: string[]) => string;
export declare const ARRAY_OF_TABLES_NAME_IS_DECLARED_AS_OTHER_TYPE_MESSAGE: (path: string[]) => string;
export declare const ARRAY_OF_TABLES_NAME_IS_DECLARED_AS_KEY_MESSAGE: (path: string[]) => string;
export declare const KEY_IS_NOT_ALLOWED_TO_ADD_TO_TABLE_MESSAGE: (path: string[], tablePath: string[], index: number, isTableArray: boolean) => string;
export declare const FAILED_TO_ACCESS_AS_TABLE_MESSAGE: (path: string[], index: number, tablePath: string[] | null, isTableArray: boolean) => string;
export declare const CANNOT_EXTEND_TABLES_WITHIN_STATIC_ARRAYS_MESSAGE: (path: string[], index: number) => string;
export declare const SCHEMA_TYPE_NOT_IN_RANGE_ERROR_MESSAGE: (path: DecodedPath, type: string, supportedTypes: string[]) => string;
export declare const TYPE_ERROR_MESSAGE: (path: Array<Key | number>, msg: string) => string;