Skip to content

Latest commit

 

History

45 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoRegisterable

Synthesizes a register(in:scope:as:...) helper for types that declare a nested Dependencies struct.

Usage

@AutoRegisterable
struct MyService {
  struct Dependencies {
    let api: API
  }
}

// Generated:
// MyService.register(in: container, scope: .shared, as: MyService.self, api: ...)

Notes

Requires a struct or class with a nested Dependencies struct.

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages