UNPKG

pubchem

Version:

pubchem simplifies the data retrieval from the PubChem API.

87 lines 1.87 kB
import type { DataType } from '../CompoundData.js'; interface ReferenceData { /** * URL to the source * @type {string} */ url: string; /** * Name of the source * @type {string} */ sourceName: string; /** * Name of the reference * @type {string} */ name: string; /** * Description of the reference * @type {string} */ description: string; } interface StatementData { /** * Code of the statement * @type {string} */ code: string; /** * Text description of the statement * @type {string} */ description: string; } interface SafetyData { /** * Reference to the source of the data * @type {ReferenceData} */ reference: ReferenceData; /** * Data of the statement * @type {StatementData} */ data: StatementData; } export interface GHSData { /** * Pictograms of the compound * @type {Array<SafetyData>} */ pictograms: SafetyData[]; /** * Hazard statements of the compound * @type {Array<SafetyData>} */ hStatements: SafetyData[]; /** * Precautionary statements of the compound * @type {Array<SafetyData>} */ pStatements: SafetyData[]; } /** * Extracts GHS information (H/P-Statements and pictograms) * @param data The data to extract from * @return The extracted data */ export declare function getGHS(data: DataType): GHSData; interface GetGHSSummaryOptions { /** * Name of the source to extract * @type {string} */ sourceName?: string | RegExp; } /** * We combine all the results and keep */ export declare function getGHSSummary(data: any, options?: GetGHSSummaryOptions): { pictograms: any[]; hStatements: any[]; pStatements: any[]; }; export {}; //# sourceMappingURL=getGHS.d.ts.map