Git Product home page Git Product logo

Comments (2)

dalcib avatar dalcib commented on July 18, 2024 2

This should work:
$ tsc --outDir js -p ./ --noEmit false --target esnext

from twitterclone.

Pra3t0r5 avatar Pra3t0r5 commented on July 18, 2024

i get this after running that command:

⟩ tsc --outDir js -p ./ --noEmit false --target esnext
src/bottomTabs.tsx:21:33 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.

21   const routeName = props.route.state
                                   ~~~~~

src/bottomTabs.tsx:22:19 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.

22     ? props.route.state.routes[props.route.state.index].name
                     ~~~~~

src/bottomTabs.tsx:22:44 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.

22     ? props.route.state.routes[props.route.state.index].name
                                              ~~~~~

src/drawerContent.tsx:25:42 - error TS2304: Cannot find name 'DrawerNavigationProp'.

25 type Props = DrawerContentComponentProps<DrawerNavigationProp>;
                                            ~~~~~~~~~~~~~~~~~~~~

src/drawerContent.tsx:44:11 - error TS2769: No overload matches this call.
  Overload 1 of 2, '(props: Readonly<AnimateProps<ViewStyle, ViewProps>>): View', gave the following error.
    Type '{ backgroundColor: string; transform: { translateX: Animated.Node<number>; }[]; }' is not assignable to type 'false | AnimateStyle<ViewStyle> | RegisteredStyle<AnimateStyle<ViewStyle>> | RecursiveArray<false | AnimateStyle<ViewStyle> | RegisteredStyle<...>> | readonly (false | ... 1 more ... | RegisteredStyle<...>)[]'.
      The types returned by 'transform.pop()' are incompatible between these types.
        Type '{ translateX: Animated.Node<number>; }' is not assignable to type 'PerpectiveTransform | RotateTransform | RotateXTransform | RotateYTransform | RotateZTransform | ... 6 more ... | SkewYTransform'.
          Types of property 'translateX' are incompatible.
            Type 'AnimatedNode<number>' is not assignable to type 'number'.
  Overload 2 of 2, '(props: AnimateProps<ViewStyle, ViewProps>, context?: any): View', gave the following error.
    Type '{ backgroundColor: string; transform: { translateX: Animated.Node<number>; }[]; }' is not assignable to type 'false | AnimateStyle<ViewStyle> | RegisteredStyle<AnimateStyle<ViewStyle>> | RecursiveArray<false | AnimateStyle<ViewStyle> | RegisteredStyle<...>> | readonly (false | ... 1 more ... | RegisteredStyle<...>)[]'.
      The types returned by 'transform.pop()' are incompatible between these types.
        Type '{ translateX: Animated.Node<number>; }' is not assignable to type 'PerpectiveTransform | RotateTransform | RotateXTransform | RotateYTransform | RotateZTransform | ... 6 more ... | SkewYTransform'.
          Types of property 'translateX' are incompatible.
            Type 'AnimatedNode<number>' is not assignable to type 'number'.

44           {
             ~
45             backgroundColor: paperTheme.colors.surface,
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46             transform: [{ translateX }],
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
47           },
   ~~~~~~~~~~~


src/stack.tsx:85:35 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.

85           const routeName = route.state
                                     ~~~~~

src/stack.tsx:86:21 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.

86             ? route.state.routes[route.state.index].name
                       ~~~~~

src/stack.tsx:86:40 - error TS2339: Property 'state' does not exist on type 'RouteProp<StackNavigatorParamlist, "FeedList">'.

86             ? route.state.routes[route.state.index].name
                                          ~~~~~


Found 8 errors.

from twitterclone.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.