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 committed Dec 19, 2018
1 parent 46b64e0 commit 4e09616
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 4e09616

Please sign in to comment.