TsSchema.setup do |config| # Options: camel|snake|pascal # config.case = :camel # Customize output path and file name # config.output = Rails.root.join('app', 'assets', 'javascripts', 'schema.d.ts') # Whether to generate the schema file on migrations and rollbacks # config.auto_generate = true # Add custom type mappings or overrides # config.custom_types = { # # } # Default type for unrecognized types # config.default_type = :string # Whether to generate types for associations # config.include_associated = true # Namespace # config.namespace = :schema # Options: tab|space # config.indent = :tab # If indent is spaces, specify how many # config.spaces = 2 end