Sha256: 7661ab6d4af3aef395ac6cbf5991117c33bdfc9a920ef9d814e999466428ed3e
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 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', 'frontend', 'types', '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 = { datetime_with_timezone: :string } # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ts_schema-0.1.1 | test/dummy/config/initializers/config/initializers/ts_schema.rb |