import { IUseOptions } from "./interfaces"; import { beforeOptionize , optionized } from "./prepare"; import { stickOptions } from "./apply"; const optionize = ( object: T , optionVector: any[] , hint:boolean|undefined = false ): T => { const result = optionized( object , beforeOptionize( object , optionVector ) , hint ); return result; }; const stick = ( object: T , ...options: any ): T => { return stickOptions( object , ...options ); }; const reset = ( object: T ) => { object.modulopt.logs = []; }; export { optionize , stick , reset };