UNPKG

461 BTypeScriptView Raw
1import type { RecursivePartial } from "../../Types";
2/**
3 * This interface is used by the [[Options]] class to have a [[load]] method to set all needed properties from source
4 * @typeParam T the options interface to load
5 * @category Options
6 */
7export interface IOptionLoader<T> {
8 /**
9 * This load method is used to load [[data]] in the classes used as generic
10 * @param data the input options
11 */
12 load(data?: RecursivePartial<T>): void;
13}