Sha256: 5d820e563820980c5ed61b8e160287510531fe74730bc0dcf99d220a0a195f51

Contents?: true

Size: 1.46 KB

Versions: 7

Compression:

Stored size: 1.46 KB

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
	#
	# Default type mappings:
	#
	# string:                 string
	# text:                   string
	# integer:                number
	# enum:                   number
	# bigint:                 number
	# float:                  number
	# decimal:                number
	# json:                   Record<string, any>
	# jsonb:                  Record<string, any>
	# binary:                 string
	# boolean:                boolean
	# date:                   string
	# datetime:               string
	# timestamp:              string
	# datetime_with_timezone: string
	# inet:                   string
	# cidr:                   string
	# macaddr:                string
	#
  # config.custom_types = {
  #   
  # }

  # Default type for unrecognized types
  # config.default_type = :string

  # Whether to generate types for associations
  # config.include_associated = true

	# Additional models to map which don't have a model file
	# config.additional_models = [
	#	
	# ]

  # Namespace
  # config.namespace = :schema

  # Options: tab|space
  # config.indent = :tab

  # If indent is spaces, specify how many
  # config.spaces = 2
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ts_schema-0.1.11 lib/generators/templates/ts_schema.rb
ts_schema-0.1.10 lib/generators/templates/ts_schema.rb
ts_schema-0.1.9 lib/generators/templates/ts_schema.rb
ts_schema-0.1.8 lib/generators/templates/ts_schema.rb
ts_schema-0.1.7 lib/generators/templates/ts_schema.rb
ts_schema-0.1.6 lib/generators/templates/ts_schema.rb
ts_schema-0.1.5 lib/generators/templates/ts_schema.rb