Sha256: a32fa6ec4bab9faccf12658beb87b8591c617095369cc95b0ca1fe233aed65f8
Contents?: true
Size: 717 Bytes
Versions: 3
Compression:
Stored size: 717 Bytes
Contents
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
Version data entries
3 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ts_schema-0.1.3 | lib/generators/templates/ts_schema.rb |
ts_schema-0.1.1 | lib/generators/templates/ts_schema.rb |
ts_schema-0.1.1 | test/tmp/config/initializers/ts_schema.rb |