jsonapi-resources-anchor 2.9.1 → 2.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bf144168503e42f90afe8d6ff68acc47ba004f7919f9417b0bc8285946c53ff
4
- data.tar.gz: b9bc38c7b8773dbcecf14a85eeba50b1aa37b1d393062694496880dec70ff7b4
3
+ metadata.gz: b6b495cccd59d5fe578f078f41827035d72da3829e8141963c3b475eb5f526da
4
+ data.tar.gz: ff128bb2b40e9410d07750c3d420e9b6ccdea4b4a959aa1fea30b3e2b94a243c
5
5
  SHA512:
6
- metadata.gz: c6fcf88d421c8cc7438150a7d5050b031fa1bd7e43fce6117e6ac52b066d04c5e97e11beb1c8b276f19d203ea8a1de7b6a9848d34363019459f57e21adaea7bc
7
- data.tar.gz: 4821485b630b8ac7f514715911d67f63b98d9d97d57062e3d7b9b9a6350c6f219f7b58169ac1bd257b1107782945ca64bfa04795de8e7d9d2a9be7822c48de77
6
+ metadata.gz: ea29aace3714798eb05322f62fe18b712a1331ba0771636577f3505cdd4220df7ec757dcaabc232eb2e4a7ce8c4f9a6605be27452d23ebcb44fdfea605f0a2a5
7
+ data.tar.gz: fd5235b86ebbf0f310f0fc4da805337e6e60c5e1c8be988fd1ac22faa8bdcb7ac37f4674f04ed81918142b684468eae2b0d7c23d1c7ec4bb39732eb476758c36
@@ -12,7 +12,7 @@ module Anchor::TypeScript
12
12
  when Anchor::Types::Record, Anchor::Types::Record.singleton_class then "Record<string, #{type_string(type.try(:value_type) || Anchor::Types::Unknown)}>"
13
13
  when Anchor::Types::Union then type.types.map { |type| type_string(type, depth) }.join(" | ")
14
14
  when Anchor::Types::Maybe then Anchor.config.maybe_as_union ? type_string(Anchor::Types::Union.new([type.type, Anchor::Types::Null]), depth) : "Maybe<#{type_string(type.type, depth)}>"
15
- when Anchor::Types::Array then Anchor.config.array_bracket_notation ? "#{type_string(type.type, depth)}[]" : "Array<#{type_string(type.type, depth)}>"
15
+ when Anchor::Types::Array then Anchor.config.array_bracket_notation ? "(#{type_string(type.type, depth)})[]" : "Array<#{type_string(type.type, depth)}>"
16
16
  when Anchor::Types::Literal then serialize_literal(type.value)
17
17
  when Anchor::Types::Reference then type.name
18
18
  when Anchor::Types::Object, Anchor::Types::Object.singleton_class then serialize_object(type, depth)
@@ -1,3 +1,3 @@
1
1
  module Anchor
2
- VERSION = "2.9.1"
2
+ VERSION = "2.9.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi-resources-anchor
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-30 00:00:00.000000000 Z
11
+ date: 2025-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-resources