Skip to content

Commit

Permalink
[Types] add tsignore for now
Browse files Browse the repository at this point in the history
  • Loading branch information
damassi committed Aug 14, 2020
1 parent 105e636 commit 1fda276
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Artsy/Router/RenderStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import StaticContainer from "react-static-container"
import { Box } from "@artsy/palette"
import { useSystemContext } from "Artsy"
import { ErrorPage } from "Components/ErrorPage"
import ElementsRenderer from "found/lib/ElementsRenderer"
import ElementsRenderer from "found/ElementsRenderer"
import { data as sd } from "sharify"
import createLogger from "Utils/logger"
import { NetworkTimeout } from "./NetworkTimeout"
Expand Down
2 changes: 1 addition & 1 deletion src/Artsy/Router/Route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { RouteSpinner } from "Artsy/Relay/renderWithLoadProgress"
import { HttpError } from "found"
import BaseRoute from "found/lib/Route"
import BaseRoute from "found/Route"
import React from "react"

type FetchIndicator = "spinner" | "overlay"
Expand Down
3 changes: 1 addition & 2 deletions src/Artsy/Router/buildClientApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import React, { ComponentType } from "react"

import { Resolver } from "found-relay"
import { ScrollManager } from "found-scroll"
import createInitialFarceRouter from "found/lib/createInitialFarceRouter"
import createRender from "found/lib/createRender"
import { createInitialFarceRouter, createRender } from "found"

import BrowserProtocol from "farce/lib/BrowserProtocol"
import createQueryMiddleware from "farce/lib/createQueryMiddleware"
Expand Down
7 changes: 4 additions & 3 deletions src/Artsy/Router/buildServerApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import serialize from "serialize-javascript"
import { ServerStyleSheet } from "styled-components"

import { Resolver } from "found-relay"
import createRender from "found/lib/createRender"
import { createRender } from "found"
import {
FarceElementResult,
FarceRedirectResult,
getFarceResult,
} from "found/lib/server"
} from "found/server"
import qs from "qs"

import createQueryMiddleware from "farce/lib/createQueryMiddleware"
Expand All @@ -30,6 +30,7 @@ import { queryStringParsing } from "./Utils/queryStringParsing"

import { ChunkExtractor } from "@loadable/server"
import { getENV } from "Utils/getENV"
import RelayServerSSR from "react-relay-network-modern-ssr/lib/server"

export interface ServerAppResolve {
bodyHTML?: string
Expand Down Expand Up @@ -200,7 +201,7 @@ export function buildServerApp(
// extractor.getLinkTags()

// Get serializable Relay data for rehydration on the client
const _relayData = await relayEnvironment.relaySSRMiddleware.getCache()
const _relayData = await (relayEnvironment.relaySSRMiddleware as RelayServerSSR).getCache()

// Extract CSS styleTags to inject for SSR pass
const styleTags = sheet.getStyleTags()
Expand Down
1 change: 1 addition & 0 deletions src/Components/FollowArtistPopover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const FollowArtistPopoverQueryRenderer = ({
const { relayEnvironment, user } = useContext(SystemContext)
return (
<QueryRenderer<FollowArtistPopoverQuery>
// @ts-ignore
environment={relayEnvironment}
variables={{ artistID }}
query={graphql`
Expand Down
1 change: 1 addition & 0 deletions src/Components/Publishing/ToolTip/TooltipsDataLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class TooltipsDataLoader extends Component<Props> {

return (
<QueryRenderer<TooltipsDataLoaderQuery>
// @ts-ignore
environment={relayEnvironment}
query={graphql`
query TooltipsDataLoaderQuery(
Expand Down
3 changes: 3 additions & 0 deletions src/DevTools/MockRelayRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ export class MockRelayRenderer<T extends OperationType> extends React.Component<
{...contextProps}
relayEnvironment={environment}
>
{/*
// @ts-ignore */}
<SystemQueryRenderer
// tslint:disable-next-line relay-operation-generics
query={query}
Expand Down
1 change: 1 addition & 0 deletions src/DevTools/__tests__/MockRelayRendererFixtures.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const ArtistQueryRenderer = (props: { id: string }) => (
{({ relayEnvironment }) => {
return (
<QueryRenderer<MockRelayRendererFixturesArtistQuery>
// @ts-ignore
environment={relayEnvironment}
variables={props}
query={graphql`
Expand Down
3 changes: 2 additions & 1 deletion src/DevTools/__tests__/createMockNetworkLayer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { createMockFetchQuery } from "DevTools/createMockNetworkLayer"
import { commitMutation, graphql } from "react-relay"
import {
Environment,
fetchQuery,
GraphQLTaggedNode,
Network,
OperationType,
RecordSource,
Store,
fetchQuery,
} from "relay-runtime"
import { createMockNetworkLayer2 } from "../index"
jest.unmock("react-relay")
Expand Down Expand Up @@ -69,6 +69,7 @@ describe("createMockNetworkLayer", () => {
})

return new Promise((resolve, reject) => {
// @ts-ignore
commitMutation(environment, {
// tslint:disable-next-line:relay-operation-generics
mutation: query,
Expand Down

0 comments on commit 1fda276

Please sign in to comment.