File tree Expand file tree Collapse file tree 3 files changed +6
-22
lines changed Expand file tree Collapse file tree 3 files changed +6
-22
lines changed Original file line number Diff line number Diff line change 4
4
5
5
## v2.2.9
6
6
7
+ * Added [ Sorbet] ( https://sorbet.org/ ) method signatures.
7
8
* Always use DTS module type when calling JsRoutes.definitions or .definitions!. [ #313 ] ( https://github.com/railsware/js-routes/issues/313 )
8
9
9
10
## v2.2.8
34
35
## v2.2.3
35
36
36
37
* Fixed NIL module type namespace defintion [ #297 ] ( https://github.com/railsware/js-routes/issues/297 ) .
37
- * The patch may cause a problem with nested ` namespace ` option
38
+ * The patch may cause a problem with nested ` namespace ` option.
38
39
* Ex. Value like ` MyProject.Routes ` requires to define ` window.MyProject ` before importing the routes file
39
40
40
- ## v2.2.2.
41
+ ## v2.2.2
41
42
42
43
* Fix custom file path [ #295 ] ( https://github.com/railsware/js-routes/issues/295 )
43
44
Original file line number Diff line number Diff line change @@ -7,23 +7,6 @@ class Configuration
7
7
include JsRoutes ::Types
8
8
extend T ::Sig
9
9
10
- DEFAULTS = T . let ( {
11
- namespace : nil ,
12
- exclude : [ ] ,
13
- include : [ // ] ,
14
- file : nil ,
15
- prefix : -> { Rails . application . config . relative_url_root || "" } ,
16
- url_links : false ,
17
- camel_case : false ,
18
- default_url_options : { } ,
19
- compact : false ,
20
- serializer : nil ,
21
- special_options_key : "_options" ,
22
- application : -> { Rails . application } ,
23
- module_type : 'ESM' ,
24
- documentation : true ,
25
- } , T ::Hash [ Symbol , T . untyped ] ) #:nodoc:
26
-
27
10
sig { returns ( T . nilable ( String ) ) }
28
11
attr_accessor :namespace
29
12
sig { returns ( Clusivity ) }
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ class Route #:nodoc:
32
32
33
33
sig { params ( configuration : JsRoutes ::Configuration , route : JourneyRoute , parent_route : T . nilable ( JourneyRoute ) ) . void }
34
34
def initialize ( configuration , route , parent_route = nil )
35
- @configuration = T . let ( configuration , JsRoutes :: Configuration )
36
- @route = T . let ( route , JourneyRoute )
37
- @parent_route = T . let ( parent_route , T . nilable ( JourneyRoute ) )
35
+ @configuration = configuration
36
+ @route = route
37
+ @parent_route = parent_route
38
38
end
39
39
40
40
sig { returns ( T ::Array [ StringArray ] ) }
You can’t perform that action at this time.
0 commit comments