Skip to content

Commit 7552f1a

Browse files
artdentghengeveld
authored andcommittedSep 6, 2019
Add displayName to the createInstance type signature. (#102)
1 parent 8125fbf commit 7552f1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/react-async/src/index.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ export namespace Async {
165165
}
166166

167167
export function createInstance<T>(
168-
defaultProps?: AsyncProps<T>
168+
defaultProps?: AsyncProps<T>,
169+
displayName?: string
169170
): (new () => Async<T>) & {
170171
Initial<T>(props: { children?: InitialChildren<T>; persist?: boolean }): JSX.Element
171172
Pending<T>(props: { children?: PendingChildren<T>; initial?: boolean }): JSX.Element

0 commit comments

Comments
 (0)