confinode
Version:
Node application configuration reader
23 lines (22 loc) • 651 B
TypeScript
import InternalResult from './InternalResult';
/**
* Type of expected children in parent result.
*/
declare type ResultChildren = InternalResult<any>[] | {
[key: string]: InternalResult<any>;
};
/**
* A result based on children elements.
*/
export default class ParentResult<T> extends InternalResult<T> {
readonly children: ResultChildren;
readonly configuration: T;
readonly fileName: unknown;
/**
* Create the result. Children may either be in an array or in an object literal.
*
* @param children - The children containing the result elements.
*/
constructor(children: ResultChildren);
}
export {};