UNPKG

@nekobird/styled-chemistry

Version:
17 lines (16 loc) 943 B
import { IStringOrNull, IStringOrNumber } from './common'; import { ISet, ISuperSet } from './set'; import { IElementGetFunctions } from './elements'; import { ICompoundGetFunctions } from './compounds'; export declare type IMixtureGetFunctionResult = IStringOrNull; export declare type IMixtureSetArrayItem = (elementGetFunctions: IElementGetFunctions, compoundGetFunctions: ICompoundGetFunctions) => IMixtureGetFunctionResult; export declare type IMixtureSet = ISet<IMixtureSetArrayItem>; export declare type IMixtureSuperSet = ISuperSet<IMixtureSetArrayItem>; export declare type IMixtureGetFunction = (key?: IStringOrNumber) => IMixtureGetFunctionResult; export declare type IMixtureSuperGetFunction = (name: string) => IMixtureGetFunction; export interface IMixtures { readonly [name: string]: IMixtureSuperSet | IMixtureSet; } export interface IMixtureGetFunctions { [name: string]: IMixtureGetFunctions | IMixtureGetFunction; }