mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-10-19 12:14:11 +00:00
Migrate from ESLint to Oxlint and Oxfmt
This commit is contained in:
@@ -36,10 +36,7 @@ type Optionalize<P, K extends keyof P> = Omit<P, K> & Partial<Pick<P, K>>;
|
||||
* Higher Order Component used to inject services into components as props.
|
||||
* All dependencies become optional props so that they can still be explicitly set in tests if desired.
|
||||
*/
|
||||
export function withDependencies<
|
||||
Props extends Record<string, unknown>,
|
||||
DependencyName extends string & keyof Props,
|
||||
>(
|
||||
export function withDependencies<Props extends Record<string, unknown>, DependencyName extends string & keyof Props>(
|
||||
Component: ComponentType<Props>,
|
||||
dependencyNames: DependencyName[],
|
||||
): ComponentType<Optionalize<Props, DependencyName>> {
|
||||
|
||||
Reference in New Issue
Block a user