Skip to content

Commit

Permalink
fix(di): return correct type from withRegistry
Browse files Browse the repository at this point in the history
  • Loading branch information
yarastqt authored and awinogradov committed Dec 20, 2018
1 parent 46b64e0 commit e695088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/di/di.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { StatelessComponent, ComponentType, createContext } from 'react';

export type GetNonDefaultProps<T> = T extends {} ? never : T;
export type GetNonDefaultProps<T> = keyof T extends never ? never : T;
export type RegistryContext = Record<string, Registry>;

const registryContext = createContext<RegistryContext>({});
Expand Down

0 comments on commit e695088

Please sign in to comment.