diff --git a/publicodes/core/source/index.ts b/publicodes/core/source/index.ts index bdf9d3fe3..2e6086ac7 100644 --- a/publicodes/core/source/index.ts +++ b/publicodes/core/source/index.ts @@ -78,7 +78,7 @@ export default class Engine { options: Options constructor( - rules: string | Record | ParsedRules, + rules: string | Record | ParsedRules = {}, options: Partial = {} ) { this.options = { ...options, logger: options.logger ?? console }