Skip to content

Commit

Permalink
Merge pull request #2820 from max-voronov/context-displayname-typescript
Browse files Browse the repository at this point in the history
Add displayName to context
  • Loading branch information
marvinhagemeister authored Nov 8, 2020
2 parents 78bea78 + 9d6023c commit 1e9e8f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ declare namespace preact {
interface Context<T> {
Consumer: Consumer<T>;
Provider: Provider<T>;
displayName?: string;
}
interface PreactContext<T> extends Context<T> {}

Expand Down

0 comments on commit 1e9e8f9

Please sign in to comment.