Skip to content

Commit

Permalink
fix: optional params
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkhan committed Jan 28, 2025
1 parent 8aa8dc7 commit 35e4b67
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/anchor/type_script/schema_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ def enums
end

class MultifileSchemaGenerator < Anchor::SchemaGenerator
def initialize(**opts)
super(**opts.except(:manually_editable))
@manually_editable = opts[:manually_editable] || false
def initialize(register:, context: {}, include_all_fields: false, exclude_fields: nil, manually_editable: true) # rubocop:disable Lint/MissingSuper
@register = register
@context = context
@include_all_fields = include_all_fields
@exclude_fields = exclude_fields
@manually_editable = :manually_editable
end

def call
Expand Down

0 comments on commit 35e4b67

Please sign in to comment.