UNPKG

@ts-for-gir/lib

Version:

Typescript .d.ts generator from GIR for gjs

39 lines 2.95 kB
export const NO_TSDATA = (namespace) => { let message = 'You need to set the tsData first!'; if (namespace) message = `[${namespace}] ${message}`; return message; }; // Error messages export const ERROR_NO_MODULES_FOUND = (girDirectories) => `No module found in ${girDirectories.join(', ')}! Please make sure that you have installed the necessary gir files. For example with "sudo apt install libgtk-4-dev" for Gtk4 on Ubuntu or "sudo dnf install gtk4-devel" on Fedora.`; export const ERROR_CONFIG_EXTENSION_UNSUPPORTED = 'Only configs with the extension .js and .json are currently supported. Do nothing'; export const ERROR_NO_MODULE_SPECIFIED = 'Need to specify modules!'; // Warn messages export const WARN_NO_GIR_FILE_FOUND_FOR_PACKAGE = (packageName) => `No gir file found for '${packageName}', this module will be ignored`; export const WARN_CONSTANT_ALREADY_EXPORTED = (name) => `The constant '${name}' has already been exported`; export const WARN_DUPLICATE_ENUM_IDENTIFIER = (name, renamed) => `Enum has a duplicate identifier '${name}', renamed to '${renamed}'!`; export const WARN_DUPLICATE_SYMBOL = (symbol) => `Duplicate symbol: ${symbol}`; export const WARN_DUPLICATE_PARAMETER = (paramName, namespace) => { let message = `Duplicate parameter name "${paramName}" found!`; if (namespace) message = `[${namespace}] ${message}`; return message; }; export const WARN_NOT_FOUND_TYPE = (logName) => `Could not find type for "${logName}"`; export const WARN_NOT_FOUND_PACKAGE_NAME = (namespace, implementation) => `Package name for namespace ${namespace} not found! (${implementation})`; export const WARN_RENAMED_PROPERTY = (originalName, newName) => `Property name renamed from '${originalName}' to '${newName}'`; export const WARN_RENAMED_FUNCTION = (originalName, newName) => `Function name renamed from '${originalName}' to '${newName}'`; export const WARN_RENAMED_CLASS = (originalName, newName) => `Class name renamed from '${originalName}' to '${newName}'`; export const WARN_RENAMED_CONSTANT = (originalName, newName) => `Constant name renamed from '${originalName}' to '${newName}'`; export const WARN_RENAMED_FIELD = (originalName, newName) => `Field name renamed from '${originalName}' to '${newName}'`; export const WARN_RENAMED_ENUM = (originalName, newName) => `Enum name renamed from '${originalName}' to '${newName}'`; export const WARN_RENAMED_PARAMETER = (originalName, newName) => `Parameter name renamed from '${originalName}' to '${newName}'`; // Info messages export const DANGER_HTML_DOC_GENERATOR_NOT_IMPLEMENTED = 'The HtmlDocGenerator is currently not implemented. Do nothing...'; export const START_MODULE = `Start to generate .d.ts files...`; export const FILE_PARSING_DONE = 'Files parsed, loading types...'; export const TSDATA_PARSING_DONE = 'Typescript data loaded, generating .d.ts...'; export const GENERATING_TYPES_DONE = 'Done.'; //# sourceMappingURL=messages.js.map