@poppinss/manager
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -11,1 +11,20 @@ export interface ManagerContract<DriverContract extends any, DriversList extends { | ||
} | ||
export declare type DriverNode<Implementation, Config> = { | ||
config: Config; | ||
implementation: Implementation; | ||
}; | ||
export declare type DriverNodesList<Implementation, Config> = { | ||
[key: string]: DriverNode<Implementation, Config>; | ||
}; | ||
export declare type ExtractDriversImpl<List extends DriverNodesList<any, any>> = { | ||
[P in keyof List]: List[P]['implementation']; | ||
}; | ||
export declare type ExtractDefaultDriverImpl<List extends DriverNodesList<any, any>, Config extends { | ||
driver: keyof List; | ||
}> = List[Config['driver']]['implementation']; | ||
export declare type ExtractDriversConfig<List extends DriverNodesList<any, any>> = { | ||
[P in keyof List]?: List[P]['config']; | ||
}; | ||
export declare type ExtractDefaultDriverConfig<List extends DriverNodesList<any, any>, Config extends { | ||
driver: keyof List; | ||
}> = List[Config['driver']]['config']; |
{ | ||
"name": "@poppinss/manager", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "The builder (Manager) pattern implementation", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -22,2 +22,3 @@ <div align="center"> | ||
- [Autocomplete drivers list](#autocomplete-drivers-list) | ||
- [Drivers types](#drivers-types) | ||
- [API Docs](#api-docs) | ||
@@ -149,2 +150,7 @@ - [Maintainers](#maintainers) | ||
## Drivers types | ||
Along with the runtime code to extend and fetch drivers, we also ship the types to deal with static side of things as well. | ||
Since the process of having extensible drivers with type information requires some complex types structure, we recommend you to look at [example/index.ts](example/index.ts) file for a complete example. | ||
## API Docs | ||
@@ -168,1 +174,2 @@ Following are the autogenerated files via Typedoc | ||
[license-image]: https://img.shields.io/aur/license/pac.svg?style=for-the-badge | ||
` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12178
107
173