Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
any typescript the preact escape hatches
Browse files Browse the repository at this point in the history
  • Loading branch information
James Baxley authored and peggyrayzis committed Jan 17, 2018
1 parent e6e155c commit 9222ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/server/getDataFromTree.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('SSR', () => {
</MyComponent>,
{},
element => {
if (element && element.preactCompatUpgraded) {
if (element && (element as any).preactCompatUpgraded) {
isPreact = true;
}
elementCount += 1;
Expand Down Expand Up @@ -719,7 +719,7 @@ describe('SSR', () => {
render() {
// this is a check for how react and preact differ. Preact (nicely)
// comes with a default state
if (this.__d) {
if ((this as any).__d) {
// I'm preact
expect(this.state).toEqual({});
} else {
Expand Down

0 comments on commit 9222ab3

Please sign in to comment.